From 60fe49ea3af38d4a7d5e8de1cdb72887b167b22d Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Sat, 11 Jul 2020 22:35:14 +0200 Subject: Moving from jekyll to hugo --- themes/ananke/layouts/_default/single.html | 66 ++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 themes/ananke/layouts/_default/single.html (limited to 'themes/ananke/layouts/_default/single.html') diff --git a/themes/ananke/layouts/_default/single.html b/themes/ananke/layouts/_default/single.html new file mode 100755 index 0000000..e63f129 --- /dev/null +++ b/themes/ananke/layouts/_default/single.html @@ -0,0 +1,66 @@ +{{ define "header" }} + {{/* We can override any block in the baseof file be defining it in the template */}} + {{ partial "page-header.html" . }} +{{ end }} + +{{ define "main" }} + {{ $section := .Site.GetPage "section" .Section }} +
+
+ + {{ partial "social-share.html" . }} +

+ {{- .Title -}} +

+ {{ with .Params.author }} +

+ By + {{ if reflect.IsSlice . }} + {{ delimit . ", " | markdownify }} + {{else}} + {{ . | markdownify }} + {{ end }} + +

+ {{ end }} + {{/* Hugo uses Go's date formatting is set by example. Here are two formats */}} + + + {{/* + Show "reading time" and "word count" but only if one of the following are true: + 1) A global config `params` value is set `show_reading_time = true` + 2) A section front matter value is set `show_reading_time = true` + 3) A page front matter value is set `show_reading_time = true` + */}} + {{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}} + - {{ .ReadingTime}} minutes read + - {{ .WordCount}} words + {{ end }} +
+
+ {{- .Content -}} + {{- partial "tags.html" . -}} +
+ {{ if .Site.DisqusShortname }} + {{ template "_internal/disqus.html" . }} + {{ end }} + {{ if .Site.Params.commentoEnable }} + {{- partial "commento.html" . -}} + {{ end }} +
+
+ + + +
+{{ end }} -- cgit v1.2.3