Index "/" renders contents of blog.
This commit is contained in:
parent
4f4faa8176
commit
a500c114e3
|
@ -1,13 +1,3 @@
|
||||||
{{ define "main" }}
|
{{ with .Site.GetPage "/blog" }}
|
||||||
<div class="boxed">
|
{{ .Render }}
|
||||||
<p>
|
|
||||||
<ul>
|
|
||||||
{{ with .Site.GetPage "/blog" }}
|
|
||||||
{{ range .Pages.ByPublishDate.Reverse }}
|
|
||||||
<li>[ {{ .PublishDate | time.Format "2006-01-01" }} ] <a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue