summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2024-10-24 08:14:08 -0500
committerMark Powers <mark@marks.kitchen>2024-10-24 08:14:08 -0500
commit511cbfbafde4ff463751fadf8dd15d3b7eb41cea (patch)
tree6d89005ca5c8d83481cb794581887f5943175192 /layouts/_default/single.html
parent4a7862b0f1c7cec898bfa08114819a74690d4962 (diff)
Refactor theme usage
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..52e9c13
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,21 @@
+{{ define "head" }}
+<link rel="stylesheet" href='{{ "css/single.css" | absURL }}'>
+{{ end }}
+
+{{ define "main" }}
+<main id="main" class="post">
+ <h1>{{ .Title }}</h1>
+ <div><i>{{ .PublishDate.Format "January 2, 2006"}}</i></div>
+ <article class="content">
+ {{ .Content }}
+ </article>
+ {{ if ne .Params.tags nil }}
+ <div>
+ <b>Keywords: </b>
+ {{ range .Params.tags }}
+ <a class="link" href='{{ "tags" | absURL }}/{{ . | urlize }}'>#{{ . }}</a>
+ {{ end }}
+ </div>
+ {{ end }}
+</main>
+{{ end }}