From bcf6d391f17a193c81ad6643f8d006de6c6abad8 Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sun, 18 Jul 2021 16:27:24 -0400 Subject: Adjust the program a bit, remove clunky "head" templates. Add an example site among other improvements --- example-site/index.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 example-site/index.md (limited to 'example-site/index.md') diff --git a/example-site/index.md b/example-site/index.md new file mode 100644 index 0000000..f9f8fa8 --- /dev/null +++ b/example-site/index.md @@ -0,0 +1,46 @@ +--- +title: Example website home page +description: My example description + +|--- + +# {{.Title}} + +Example paragraph. This website utilizes Go's templates, a Blackfriday markdown +renderer and some yaml at the top of each file to provide some information about +it. + +`code style text` + + * [reIndex page]({{.Global.App.ReIndexPath}}) + * [404 Page](/some/path/that/does/not/exist/at/all) + * [Example checkup page](/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: + +``` +{{.EncodeYaml .Global}} +``` + +#### Page Index ( details ) + +``` +{{.EncodeYaml .Index}} +``` + -- cgit v1.2.3