diff options
Diffstat (limited to 'layouts/_default/home.html')
| -rw-r--r-- | layouts/_default/home.html | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/layouts/_default/home.html b/layouts/_default/home.html new file mode 100644 index 0000000..2dabf5b --- /dev/null +++ b/layouts/_default/home.html @@ -0,0 +1,19 @@ +{{ define "main" }} +<div class="body"> + <h2>{{ .Title }}</h2> + {{ .Content }} +</div> +<div class="list"> + <h2>Recent posts</h2> + <ul> + {{ $pages := .Pages }} + {{ $pages = .Site.RegularPages }} + {{ range (where $pages "Section" "!=" "") }} + <li> + <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> + <span class="date"> Published on {{ .Date.Format "2006/01/02" }}</span> + </li> + {{ end }} + </ul> +</div> +{{ end }} |
