From 90367e84ba933f0eca347767522b67e3e321f3ea Mon Sep 17 00:00:00 2001 From: thinkpadmaster Date: Fri, 14 Jul 2023 00:51:21 -0500 Subject: Update to range --- html/blog/Markdown_To_HTML_Update.tmpl.html | 4 ++-- md/POST_TEMPLATE.tmpl.html | 4 ++-- 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"}}

Blog

-

{{ .Title }}

+

{{range .Contents}}{{ .Title }}{{end}}

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 ImageMagick for automatically sizing images, and writing the automation scripts to move everything where it sholud go.

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.

Uploaded:

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"}}

$page$

-

{{ .Title }}

+

{{range .Contents}}{{ .Title }}{{end}}

$body$

Uploaded: