aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authorJan Raasch <jan@janraasch.com>2020-08-31 15:40:11 +0200
committerJan Raasch <jan@janraasch.com>2020-09-03 20:22:23 +0200
commit58805381571574f39ff3ddeaf98f64d708486ca7 (patch)
treec0c73917c2f507a505e993a3fd368f5ad4fd046a /layouts/_default/single.html
downloadhugo-bearcub-58805381571574f39ff3ddeaf98f64d708486ca7.tar.gz
hugo-bearcub-58805381571574f39ff3ddeaf98f64d708486ca7.tar.bz2
chore: initial commit
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..f993a0c
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,20 @@
+{{ define "main" }}
+{{ if eq .Type "blog" }}{{ if not .Params.menu }}
+<h1>{{ .Title }}</h1>
+<p>
+ <i>
+ <time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
+ {{ .Date.Format "02 Jan, 2006" }}
+ </time>
+ </i>
+</p>
+{{ end }}{{ end }}
+<content>
+ {{ .Content }}
+</content>
+<p>
+ {{ range (.GetTerms "tags") }}
+ <a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
+ {{ end }}
+</p>
+{{ end }}