Index "/" renders contents of blog.
This commit is contained in:
parent
4f4faa8176
commit
a500c114e3
|
@ -1,13 +1,3 @@
|
|||
{{ define "main" }}
|
||||
<div class="boxed">
|
||||
<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>
|
||||
{{ with .Site.GetPage "/blog" }}
|
||||
{{ .Render }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue