update index view
This commit is contained in:
parent
9815434e44
commit
52ab987649
@ -4,7 +4,7 @@
|
|||||||
<header>
|
<header>
|
||||||
<h1>404: Page not found</h1>
|
<h1>404: Page not found</h1>
|
||||||
</header>
|
</header>
|
||||||
<p>Sorry, this page doesn't exist :-(</p>
|
<p>Unfortunately, this page does not exist.</p>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
@ -1,9 +1,15 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
|
||||||
|
{{ $Pages := .Pages }}
|
||||||
|
|
||||||
|
{{ if .IsHome }}
|
||||||
|
{{ $Pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
<header><h1>{{ .Title | default "Posts" }}</h1></header>
|
<header><h1>{{ .Title | default "Posts" }}</h1></header>
|
||||||
<ul class="archive">
|
<ul class="archive">
|
||||||
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{- range $Pages }}
|
||||||
<li>
|
<li>
|
||||||
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
|
{{ if .Date }}<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>{{ end }}
|
||||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user