From ca33a035c779ae14fb6330c8801c75f49dd1bb79 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sat, 7 Jan 2023 13:31:23 -0500 Subject: Add an internal caching option. It performs quite well. Also refactor and clean up most linter warnings. --- example-site/index.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'example-site/index.md') diff --git a/example-site/index.md b/example-site/index.md index f9f8fa8..7d51067 100644 --- a/example-site/index.md +++ b/example-site/index.md @@ -19,7 +19,7 @@ it. ## Recent Blog Entries: -[Atom Feed](/{{.Global.App.FeedPrefix}}/Blog?limit=5&content) +[Atom Feed]({{.Global.App.FeedPrefix}}/Blog?limit=5&content) {{range $val := .Index.Blog.SortDate}} * [{{$val.Date.Time.Format "2006-01-02"}} {{$val.Title}}]({{$val.Path}}){{end}} @@ -27,7 +27,7 @@ it. ## Published Blog Entries: {{range $val := .Index.Blog.SortDate}}{{if $val.Published}} - * [{{$val.Date.Time.Format "2006-01-02"}} * {{$val.Title}}]({{$val.Path}}){{end}}{{end}} + * [{{$val.Date.Time.Format "2006-01-02"}} {{$val.Title}}]({{$val.Path}}){{end}}{{end}} ## Some internals @@ -44,3 +44,6 @@ it. {{.EncodeYaml .Index}} ``` + + + -- cgit v1.2.3