From 0b30289d9f3520144bb37caa009d8953cde0e3d6 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 22 Apr 2019 19:17:39 +0200 Subject: #43, Update tree menu rendering to support multiple sections --- layouts/posts/list.html | 6 +++--- layouts/posts/single.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'layouts/posts') diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 18871f2..13e1ea1 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -1,15 +1,15 @@ {{ define "main" }} - {{- $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat -}} + {{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }} {{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }} {{ range sort .Paginator.Pages }} -
+

{{ .Title }}

{{ .Date.Format $dateFormat }}
-

+

{{- .Summary -}} {{ if .Truncated }} ... diff --git a/layouts/posts/single.html b/layouts/posts/single.html index a7f94ed..9222a59 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,6 +1,6 @@ {{ define "main" }} -{{- $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat -}} -

+{{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }} +

{{ .Title }}

{{ .Date.Format $dateFormat }} -- cgit v1.2.3