aboutsummaryrefslogtreecommitdiff
path: root/example-site/index.md
blob: 2280662fc465f508474de361473f68e8ce9e2b74 (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
47
48
---
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}}

## 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:

```
{{.Global}}

"App" under Global vars:
{{.Global.App}}
```

#### Page Index ( details )

```
{{.EncodeYaml .Index}}
```


{{end}}