From f2082a0d72f9359be02182883a1e1190d8b1b215 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sun, 18 Jul 2021 16:04:06 -0400 Subject: More changes to how the website functions --- example-site/checkup.md | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 example-site/checkup.md (limited to 'example-site/checkup.md') diff --git a/example-site/checkup.md b/example-site/checkup.md new file mode 100644 index 0000000..f7d7a88 --- /dev/null +++ b/example-site/checkup.md @@ -0,0 +1,62 @@ +--- +title: Example checkup page +description: Showing the output of one of the internal checkup mechanisms + +|--- + +# {{.Title}} + +# Status + +{{range $key, $val := .Checkup}} +## {{$key}}: +{{range $page := $val}} +``` +{{$page}} +{{$page.EncodeYaml nil}} +``` +{{end}} +{{end}} +## Raw + +``` +{{.EncodeYaml .Checkup}} +``` + +## Recent Blog Entries: + +[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}} + +## Published Blog Entries: + +{{range $val := .Index.Blog.SortDate}}{{if $val.Published}} + * [{{$val.Date.Time.Format "2006-01-02"}} * {{$val.Title}}]({{$val.Path}}){{end}}{{end}} + +## Some internals + + +#### Global vars: + +``` +{{.Global}} + +"App" under Global vars: +{{.Global.App}} +``` + +#### Page Index + +{{range $key, $val := .Index}} +``` +### {{$key}}: + +{{range $v2 := $val}} +{{$v2.StringDetail}}{{end}} +``` + + +{{end}} + -- cgit v1.2.3