aboutsummaryrefslogtreecommitdiff
path: root/example-site/index.md
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-07-15 01:10:41 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-07-15 01:10:41 -0400
commit8b1d8bf26452f3ce8b38228a39755a6b8e18775a (patch)
treef30f5cc86ce6758589d3d42607e829d0f537e70b /example-site/index.md
parent904e37a88a6a2eab3919f7f2c40bbb2c07544a7c (diff)
downloadgo-website-8b1d8bf26452f3ce8b38228a39755a6b8e18775a.tar.gz
go-website-8b1d8bf26452f3ce8b38228a39755a6b8e18775a.tar.xz
Start on the example website. Remove some chunks of code. Fix up author handling in the feeds.
Diffstat (limited to 'example-site/index.md')
-rw-r--r--example-site/index.md47
1 files changed, 47 insertions, 0 deletions
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}}