From ffa26298c95451639a6e01db6692d02d50b3d518 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 18 May 2024 16:45:28 +0200 Subject: Remove most custom template functions from html templating --- src/http/tpl/base.html | 5 ++--- src/http/tpl/gemini-cta.html | 2 +- src/http/tpl/post.html | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/http/tpl') diff --git a/src/http/tpl/base.html b/src/http/tpl/base.html index 7e7a4a9..47644f7 100644 --- a/src/http/tpl/base.html +++ b/src/http/tpl/base.html @@ -3,9 +3,8 @@ {{ .Title }} - - - + + diff --git a/src/http/tpl/gemini-cta.html b/src/http/tpl/gemini-cta.html index 06e3a22..89b8e8b 100644 --- a/src/http/tpl/gemini-cta.html +++ b/src/http/tpl/gemini-cta.html @@ -2,7 +2,7 @@

This site can also be accessed via the gemini protocol: - + {{ BlogGeminiURL "/" }}

diff --git a/src/http/tpl/post.html b/src/http/tpl/post.html index 0cf3622..46a24fc 100644 --- a/src/http/tpl/post.html +++ b/src/http/tpl/post.html @@ -16,7 +16,7 @@ {{ .PostHTMLBody $post }}

- Published {{ DateTimeFormat $post.PublishedAt }} + Published {{ $post.PublishedAt.Format "2006-01-02" }}

{{- if $post.Series }} -- cgit v1.2.3