aboutsummaryrefslogtreecommitdiff
path: root/md
diff options
context:
space:
mode:
Diffstat (limited to 'md')
-rw-r--r--md/POST_TEMPLATE.tmpl.html5
-rw-r--r--md/staged/NewPost.md1
2 files changed, 4 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>
diff --git a/md/staged/NewPost.md b/md/staged/NewPost.md
index 2d7aa82..8570300 100644
--- a/md/staged/NewPost.md
+++ b/md/staged/NewPost.md
@@ -4,6 +4,7 @@ title: Title
date: 2021-04-27
description: Description
tags: tmp
+canonical: /projects
---
text