From 921bd720afc872fbb92c7eb6ec1acee072c35421 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Tue, 22 Dec 2020 21:07:37 +0100 Subject: [PATCH] fix(list): display parent section title --- 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 1bed864..344b4a5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,9 +1,9 @@ {{ define "main" }}

- {{ if eq .CurrentSection .FirstSection }} + {{ if eq .Parent (.GetPage "/") }} {{ T "list.section" }} {{ else }} - {{ .CurrentSection.Title }} + {{ .Parent.Title }} {{ end }}