aboutsummaryrefslogtreecommitdiff
path: root/example-site/index.md
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-07-18 16:27:24 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-07-18 16:27:24 -0400
commitbcf6d391f17a193c81ad6643f8d006de6c6abad8 (patch)
treeb8eaec45b02d79f8d51d6726ffbbe34ce5de2ed7 /example-site/index.md
parent904e37a88a6a2eab3919f7f2c40bbb2c07544a7c (diff)
downloadgo-website-bcf6d391f17a193c81ad6643f8d006de6c6abad8.tar.gz
go-website-bcf6d391f17a193c81ad6643f8d006de6c6abad8.tar.xz
Adjust the program a bit, remove clunky "head" templates. Add an example site among other improvementsv0.0.13
Diffstat (limited to 'example-site/index.md')
-rw-r--r--example-site/index.md46
1 files changed, 46 insertions, 0 deletions
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}}
+```
+