diff options
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r-- | layouts/_default/single.html | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 8dcd8cc..30da500 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,6 +2,7 @@ <article class="post"> <header class="post-header"> <h1 class ="post-title">{{ .Title }}</h1> + {{- if ne .Type "page" }} <div class="post-meta"> <div> {{ partial "icon.html" (dict "ctx" $ "name" "calendar") }} @@ -11,17 +12,18 @@ {{ partial "icon.html" (dict "ctx" $ "name" "clock") }} {{ .ReadingTime }} min read </div> - {{- with .Params.tags -}} + {{- with .Params.tags }} <div> {{ partial "icon.html" (dict "ctx" $ "name" "tag") }} - {{ range . -}} - {{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}} + {{- range . -}} + {{ with $.Site.GetPage (printf "/%s/%s" "tags" . ) }} <a class="tag" href="{{ .Permalink }}">{{ .Title }}</a> - {{- end -}} - {{- end -}} + {{- end }} + {{- end }} </div> - {{- end -}} + {{- end }} </div> + {{- end }} </header> <div class="post-content"> {{ .Content }} |