aboutsummaryrefslogtreecommitdiff
path: root/md/POST_TEMPLATE.tmpl.html
diff options
context:
space:
mode:
authorthinkpadmaster <a.scerba02@gmail.com>2023-08-28 09:49:47 -0500
committerAlex Scerba <alex@scerba.org>2024-10-29 13:19:57 -0400
commit027a96c9c8ecd9452a21f0173a15860d03a3f339 (patch)
tree141049f49461352f8ff6cd107404e97c69dd70ac /md/POST_TEMPLATE.tmpl.html
parentf348728153f8c9199536a5c18c2f49f77f54aba5 (diff)
Reflect new syntax
Diffstat (limited to 'md/POST_TEMPLATE.tmpl.html')
-rw-r--r--md/POST_TEMPLATE.tmpl.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/md/POST_TEMPLATE.tmpl.html b/md/POST_TEMPLATE.tmpl.html
index 3383456..405f327 100644
--- a/md/POST_TEMPLATE.tmpl.html
+++ b/md/POST_TEMPLATE.tmpl.html
@@ -1,11 +1,12 @@
-{{define "title"}}{{range .Contents}}{{ .Title }}{{end}}{{end}}
+{{define "title"}}{{.Post.Title}}{{end}}
{{define "description"}}$description${{end}}
{{define "keywords"}}$tags${{end}}
+{{ define "canonical" }}$canonical${{end}}
{{define "main"}}
<h1>$page$</h1>
<article class="postContent">
- <h2>{{range .Contents}}{{ .Title }}{{end}}</h2>
+ <h2>{{.Post.Title}}</h2>
$body$
<p>Uploaded: <time datetime="$date$">$date$</time></p>
</article>