From c454594a0df2cf0bb5a992ce32d8e247626303ed Mon Sep 17 00:00:00 2001 From: Pk11 Date: Mon, 21 Dec 2020 15:28:32 -0600 Subject: [PATCH] Use page.collection instead of page.lang and auto add language to nav --- _includes/footer.html | 6 +++--- _includes/head.html | 4 ++-- _includes/nav.html | 14 +++++++------- _includes/seo.html | 14 +++++++------- _layouts/default.html | 2 +- _layouts/wiki.html | 2 +- 6 files changed, 21 insertions(+), 21 deletions(-) diff --git a/_includes/footer.html b/_includes/footer.html index 80e0d4ed..742db1ee 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,8 +1,8 @@ diff --git a/_includes/head.html b/_includes/head.html index f06cd1ec..1db79ab9 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -4,10 +4,10 @@ - {% if site.data[page.lang].strings.title != page.title %} + {% if site.data[page.collection].strings.title != page.title %} {{ page.title }} | {% endif %} - {{ site.data[page.lang].strings.title }} + {{ site.data[page.collection].strings.title }} diff --git a/_includes/nav.html b/_includes/nav.html index ae038b03..5919d83c 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -1,17 +1,17 @@