diff options
author | thinkpadmaster <a.scerba02@gmail.com> | 2023-08-28 09:49:47 -0500 |
---|---|---|
committer | Alex Scerba <alex@scerba.org> | 2024-10-29 13:19:57 -0400 |
commit | 027a96c9c8ecd9452a21f0173a15860d03a3f339 (patch) | |
tree | 141049f49461352f8ff6cd107404e97c69dd70ac /md | |
parent | f348728153f8c9199536a5c18c2f49f77f54aba5 (diff) |
Reflect new syntax
Diffstat (limited to 'md')
-rw-r--r-- | md/POST_TEMPLATE.tmpl.html | 5 | ||||
-rw-r--r-- | md/staged/NewPost.md | 1 |
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 |