From 76d646925176c6e29a1bb40ceb57ed8461bff8b9 Mon Sep 17 00:00:00 2001 From: mtail Date: Wed, 13 Jun 2018 23:30:40 -0700 Subject: [PATCH] More translation work. - Add a language selection menu selection in the gear menu. - Fix the Blog link in the top nav to use the proper trsanslated term and target page. --- layouts/feed/single.rss.xml | 2 +- layouts/partials/header.html | 11 +++++++++-- layouts/partials/sidebar-multicard.html | 2 +- layouts/partials/sidebar-singlecard.html | 2 +- layouts/section-index/list.html | 2 +- 5 files changed, 13 insertions(+), 6 deletions(-) diff --git a/layouts/feed/single.rss.xml b/layouts/feed/single.rss.xml index 4b1fd95e0e..8409c10c93 100644 --- a/layouts/feed/single.rss.xml +++ b/layouts/feed/single.rss.xml @@ -13,7 +13,7 @@ {{ $home }} - {{ $pages := (where .Site.AllPages "Section" "blog").ByPublishDate }} + {{ $pages := (where .Site.Pages "Section" "blog").ByPublishDate }} {{ range $post := $pages }} {{ if and (not $post.Draft) $post.IsPage }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 941743d94d..dc72e3ca26 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,4 +1,4 @@ -{{ $posts := (where .Site.AllPages "Section" "blog").ByPublishDate.Reverse }} +{{ $posts := (where .Site.Pages "Section" "blog").ByPublishDate.Reverse }} {{ $latest_post := index $posts 0 }} {{ $version := .Site.Data.args.version }} @@ -6,7 +6,9 @@