From 8b1d8bf26452f3ce8b38228a39755a6b8e18775a Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Thu, 15 Jul 2021 01:10:41 -0400 Subject: Start on the example website. Remove some chunks of code. Fix up author handling in the feeds. --- example-site/index.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 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..6d292b5 --- /dev/null +++ b/example-site/index.md @@ -0,0 +1,47 @@ +--- +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}}) + +## 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}} + +## 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