aboutsummaryrefslogtreecommitdiff
path: root/example-site/index.md
diff options
context:
space:
mode:
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}}