aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-10-12 04:33:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-10-12 04:33:36 +0300
commit937c2703df1dde8a7318cfa9b7318a0bf202b4cc (patch)
treeba7bc0070b2c181079caa86c47546567103ed006 /_includes
parentcustom_{css,js}: support absolute URLs (diff)
downloadjekyll-theme-937c2703df1dde8a7318cfa9b7318a0bf202b4cc.tar.gz
jekyll-theme-937c2703df1dde8a7318cfa9b7318a0bf202b4cc.zip
header: short title for the main page
Diffstat (limited to '_includes')
-rw-r--r--_includes/common/header.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/_includes/common/header.html b/_includes/common/header.html
index f905e37..81d7cbf 100644
--- a/_includes/common/header.html
+++ b/_includes/common/header.html
@@ -6,10 +6,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if site.settings.project.name %}
- <title>{{ page.title }} - {{ site.settings.project.name }} - {{ site.settings.author.name }}</title>
+ {% capture title %}{{ site.settings.project.name }} - {{ site.settings.author.name }}{% endcapture %}
{% else %}
- <title>{{ page.title }} - {{ site.settings.author.name }}</title>
+ {% capture title %}{{ site.settings.author.name }}{% endcapture %}
{% endif %}
+ {% if page.url != '/' %}
+ {% capture title %}{{ page.title }} - {{ title }}{% endcapture %}
+ {% endif %}
+ <title>{{ title }}</title>
<link rel="stylesheet" href="{{ '/assets/bootstrap/css/bootstrap.min.css' | relative_url }}">
<!--[if lt IE 9]>