From 027a96c9c8ecd9452a21f0173a15860d03a3f339 Mon Sep 17 00:00:00 2001 From: thinkpadmaster <a.scerba02@gmail.com> Date: Mon, 28 Aug 2023 09:49:47 -0500 Subject: Reflect new syntax --- md/POST_TEMPLATE.tmpl.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'md/POST_TEMPLATE.tmpl.html') 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> -- cgit v1.2.3