From 6365d4b5a9a28222c4b14237f53adb1bee367083 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 6 Jan 2020 21:33:51 +0100 Subject: Improve semanticity --- layouts/_default/single.html | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'layouts/_default/single.html') diff --git a/layouts/_default/single.html b/layouts/_default/single.html index fc7edb3..9fbe403 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,19 +1,24 @@ {{ define "main" }} -
-

{{ .Title | markdownify }}

-{{ with .Params.author }}

{{ . }}

{{ end }} -{{ if (gt .Params.date 0) }}

{{ .Date.Format "2006-01-02" }}

{{ end }} -

- {{ range $i := (slice "categories" "tags") }} - {{ with ($.Param $i) }} - {{ $i | title }}: {{ range $k := . }}{{$k}} {{ end }} - {{ end }} - {{ end }} -

-
+
+
+

{{ .Title | markdownify }}

+ {{ with .Params.author }}

{{ . }}

{{ end }} + {{ if (gt .Params.date 0) }}

{{ .Date.Format "2006-01-02" }}

{{ end }} +

+ {{ range $i := (slice "categories" "tags") }} + {{ with ($.Param $i) }} + {{ $i | title }}: {{ range $k := . }}{{$k}} {{ end }} + {{ end }} + {{ end }} +

+
-
-{{ .Content }} -
+
+ {{ .Content }} +
+ +
{{- end }} -- cgit 1.4.1