aboutsummaryrefslogtreecommitdiff
path: root/example-site/index.md
blob: f9f8fa849348d0e4dbb7d79fc2df8847c8060cb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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}}
```