aboutsummaryrefslogtreecommitdiff
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
parentf609ba180872439f5607eb25e7823312034e57bc (diff)
Update to range
-rw-r--r--html/blog/Markdown_To_HTML_Update.tmpl.html4
-rw-r--r--md/POST_TEMPLATE.tmpl.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/html/blog/Markdown_To_HTML_Update.tmpl.html b/html/blog/Markdown_To_HTML_Update.tmpl.html
index 7725a0a..906e733 100644
--- a/html/blog/Markdown_To_HTML_Update.tmpl.html
+++ b/html/blog/Markdown_To_HTML_Update.tmpl.html
@@ -1,11 +1,11 @@
-{{define "title"}}{{ .Title }}{{end}}
+{{define "title"}}{{range .Contents}}{{ .Title }}{{end}}{{end}}
{{define "description"}}Update on the new site underlying code.{{end}}
{{define "keywords"}}blog site{{end}}
{{define "main"}}
<h1>Blog</h1>
<article class="postContent">
- <h2>{{ .Title }}</h2>
+ <h2>{{range .Contents}}{{ .Title }}{{end}}</h2>
<p>So, I got the site to use real, authentic, true to the standard, “text/template” format for my pages and posts. No more strange, non-conforming elements. More readable source code?? We have it. The best?? Probably not… but that’s okay because progress is progress. The last few things to do are program in the tagging system, set up <a href="https://imagemagick.org/" target="_blank" rel="noopener noreferrer">ImageMagick</a> for automatically sizing images, and writing the automation scripts to move everything where it sholud go.</p>
<p>Getting this all to work has been a great adventure. Going back to programming has been pretty refreshing compared to working on art. A program is either right or wrong. It does what you expect, or it doesn’t. There’s not much interpretation to be had and I miss it.</p>
<p>Uploaded: <time datetime="2023-07-13">2023-07-13</time></p>
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">