diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2021-07-18 16:27:24 -0400 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2021-07-18 16:27:24 -0400 |
| commit | bcf6d391f17a193c81ad6643f8d006de6c6abad8 (patch) | |
| tree | b8eaec45b02d79f8d51d6726ffbbe34ce5de2ed7 /example-site/index.md | |
| parent | 904e37a88a6a2eab3919f7f2c40bbb2c07544a7c (diff) | |
| download | go-website-0.0.13.tar.gz go-website-0.0.13.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.md | 46 |
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}} +``` + |
