From 6283825517f49afa18b4bb6f1d820a08f8f6e290 Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Mon, 10 Feb 2020 19:38:11 +0100 Subject: Lanyon update --- layouts/index.html | 39 +++++++++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 14 deletions(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index ec6d2eb..28e95ae 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,18 +1,29 @@ {{ define "main" -}}
-{{ range .Site.RegularPages -}} -
-

- {{ .Title }} -

- - {{ .Summary }} - {{ if .Truncated }} - - {{ end }} -
-{{- end }} + {{ range .Site.RegularPages -}} + {{ if and (or (eq .Type "post") (eq .Type "article")) (or (not (isset .Params "Hidden")) (eq .Params.Hidden false)) -}} +
+

+ {{ .Title }} +

+ + + + {{ if .Description }} + {{ .Description }} + {{ else }} + {{ .Summary }} + {{ end }} + + {{ if .Truncated }} + + {{ end }} +
+ {{- end }} + {{- end }}
{{- end }} -- cgit v1.2.1