Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/papercss-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2019-02-26 23:51:43 +0300
committerZachary Betz <zwbetz@gmail.com>2019-02-26 23:51:43 +0300
commit031dea3482e3767de453dd69bf24ba0cc94c410b (patch)
tree3df5e7ff3ae68bd7328f751a0e66ed7e5931bb90
parentd1618631fdbea7c9cce4fdea5861f41223f9d096 (diff)
Add post tags
-rw-r--r--layouts/post/single.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/layouts/post/single.html b/layouts/post/single.html
new file mode 100644
index 0000000..2022bd0
--- /dev/null
+++ b/layouts/post/single.html
@@ -0,0 +1,15 @@
+{{ define "main" }}
+
+<h1>{{ .Title }}</h1>
+{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }}
+<strong>Publish date: </strong>{{ .PublishDate.Format $dateFormat }}
+<br>
+{{ with .Params.tags }}
+ <strong>Tags: </strong>
+ {{ range . }}
+ <a href="{{ "tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+{{ end }}
+{{ .Content }}
+
+{{ end }} \ No newline at end of file