From 7ef145c4cfc6b19c476629e4942157d9d51856dc Mon Sep 17 00:00:00 2001 From: Henning Blunck Date: Tue, 29 Dec 2020 15:52:19 +0100 Subject: [PATCH] Make list.html fully generic I love the list template. However, I had some issues using it for other content archetypes other than `posts`. This code change makes list.html fully generic, there are no more built in references to `posts`. --- layouts/_default/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index c8a5dfd..0001667 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -10,7 +10,7 @@ {{ define "sidebar" }} {{ $blogHome:="#" }} {{ if site.IsMultiLingual }} - {{ $blogHome = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) "posts") }} + {{ $blogHome = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }} {{ end }}