From 3f97311514902ae76a905f7c8e7ed7031b4121de Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 24 Jan 2023 13:19:23 +0100 Subject: Add notice atop md->gmi translated pages --- src/gmi/tpl.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gmi/tpl.go') diff --git a/src/gmi/tpl.go b/src/gmi/tpl.go index 5777024..ae94bc6 100644 --- a/src/gmi/tpl.go +++ b/src/gmi/tpl.go @@ -203,6 +203,10 @@ func (a *api) tplHandler() (gemini.Handler, error) { path := filepath.Join("posts", id) + ".gmi" return blogURL(a.params.PublicURL, path, true) }, + "PostHTTPURL": func(id string) string { + path := filepath.Join("posts", id) + return preprocessFuncs.BlogHTTPURL(path) + }, }) err := fs.WalkDir(tplFS, "tpl", func(path string, d fs.DirEntry, err error) error { -- cgit v1.2.3