aboutsummaryrefslogtreecommitdiff
path: root/www/layouts/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'www/layouts/single.html')
-rw-r--r--www/layouts/single.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/www/layouts/single.html b/www/layouts/single.html
new file mode 100644
index 0000000..cd0e9c5
--- /dev/null
+++ b/www/layouts/single.html
@@ -0,0 +1,23 @@
+{{ define "head"}}
+ {{ partial "css.html" "res/css/single.css" }}
+{{ end }}
+
+{{ define "title" }}
+ {{ .Title }}
+{{ end }}
+
+{{ define "content" }}
+ {{ partial "nav.html" . }}
+ <h1 class="post-title">{{ .Title }}</h1>
+ <hr/>
+ <p class="post-info">
+ <span class="created">{{ partial "date.html" .Date }}</span> |
+ <span class="words">{{ .WordCount }} words</span>
+ {{ if ne .Lastmod .Date }}
+ <span class="last-updated">Last updated: {{ partial "date.html" .Lastmod }}</span>
+ {{ end}}
+ </p>
+ {{ .Content }}
+ <hr class="end-hr"/>
+ {{ partial "nav.html" . }}
+{{ end }}