Browse Source

Fix page <title> on documentation home.

Dan Helfman 3 weeks ago
parent
commit
2deb27c985
1 changed files with 4 additions and 0 deletions
  1. 4 0
      docs/_includes/layouts/base.njk

+ 4 - 0
docs/_includes/layouts/base.njk

@@ -5,7 +5,11 @@
 		<meta name="viewport" content="width=device-width, initial-scale=1.0">
                 <meta name="generator" content="{{ eleventy.generator }}">
 		<link rel="icon" href="https://torsion.org/borgmatic/static/borgmatic.png" type="image/x-icon">
+		{% if page.url == '/' %}
+		<title>borgmatic</title>
+		{% else %}
 		<title>borgmatic{% if subtitle or title %} - {% endif %}{{ subtitle + ' - ' if subtitle}}{{ title }}</title>
+		{% endif %}
 {%- set css %}
 {% include 'index.css' %}
 {% include 'components/lists.css' %}