aboutsummaryrefslogtreecommitdiff
path: root/md
diff options
context:
space:
mode:
authorthinkpadmaster <a.scerba02@gmail.com>2023-07-14 00:51:21 -0500
committerthinkpadmaster <a.scerba02@gmail.com>2023-07-14 00:51:21 -0500
commit90367e84ba933f0eca347767522b67e3e321f3ea (patch)
treeddb7c8f24adffbfd882278c12ecb027660f437eb /md
parentf609ba180872439f5607eb25e7823312034e57bc (diff)
Update to range
Diffstat (limited to 'md')
-rw-r--r--md/POST_TEMPLATE.tmpl.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/md/POST_TEMPLATE.tmpl.html b/md/POST_TEMPLATE.tmpl.html
index c1c1dbf..e70f2e1 100644
--- a/md/POST_TEMPLATE.tmpl.html
+++ b/md/POST_TEMPLATE.tmpl.html
@@ -1,11 +1,11 @@
-{{define "title"}}{{ .Title }}{{end}}
+{{define "title"}}{{range .Contents}}{{ .Title }}{{end}}{{end}}
{{define "description"}}$description${{end}}
{{define "keywords"}}$tags${{end}}
{{define "main"}}
<h1>$page$</h1>
<article class="postContent">
- <h2>{{ .Title }}</h2>
+ <h2>{{range .Contents}}{{ .Title }}{{end}}</h2>
$body$
<p>Uploaded: <time datetime="$date$">$date$</time></p>
<!--<div class="tags">