summaryrefslogtreecommitdiffstats
path: root/blog/_includes
diff options
context:
space:
mode:
Diffstat (limited to 'blog/_includes')
-rw-r--r--blog/_includes/head.html7
-rw-r--r--blog/_includes/menubar.html4
2 files changed, 8 insertions, 3 deletions
diff --git a/blog/_includes/head.html b/blog/_includes/head.html
index 4a7c430..93f1512 100644
--- a/blog/_includes/head.html
+++ b/blog/_includes/head.html
@@ -2,7 +2,12 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>{{ site.title }}{% if page.title %} - {% t page.title %}{% endif %}</title>
+ <title>
+ {{ site.title }}
+ {% if page.title %}
+ - {% page_title page.title %}
+ {% endif %}
+ </title>
<meta name="description" content="{{ site.description }}">
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl_root }}">
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl_root | prepend: site.url }}">
diff --git a/blog/_includes/menubar.html b/blog/_includes/menubar.html
index 04b6834..d81b896 100644
--- a/blog/_includes/menubar.html
+++ b/blog/_includes/menubar.html
@@ -1,8 +1,8 @@
<nav class="site-nav">
<a class="page-link" href="{{ site.baseurl }}">{% t titles.home %}</a>
{% for page in site.pages %}
- {% if page.title and page.hidden != true %}
- <a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{% t {{ page.title }} %}</a>
+ {% if page.title %}
+ <a class="page-link" href="{{ page.url | prepend: site.baseurl }}">{% page_title page.title %}</a>
{% endif %}
{% endfor %}
</nav>