aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authorJJ <nicetry@noemail.com>2025-03-19 14:56:26 +0000
committerJJ <nicetry@noemail.com>2025-03-19 14:56:26 +0000
commit16f52b7bef745097f7076dde76715db378b54343 (patch)
treecfcacda8adced2059dcc120d2bc2446d3c4f960a /layouts/_default/single.html
first commit
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..5d0d520
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,17 @@
+{{ define "main" }} {{ if eq .Type "blog" }}{{ if not .Params.menu }}
+<h1>{{ .Title }}</h1>
+<p>
+ <i>
+ <time datetime='{{ .Date.Format "2006-01-02" }}'>
+ {{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
+ </time>
+ </i>
+</p>
+{{ end }}{{ end }}
+<content> {{ .Content }} </content>
+<p>
+ {{ range (.GetTerms "tags") }}
+ <a href="{{ .Permalink }}">#{{ lower .LinkTitle }}</a>
+ {{ end }}
+</p>
+{{ end }}