Change `hugo` theme template.
This commit is contained in:
parent
0cd252575c
commit
3b7df4e0d3
|
@ -5,20 +5,22 @@
|
||||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||||
<main id="index" role="main">
|
<main id="index" role="main">
|
||||||
<div class="article-header light-gray"><h1>Recent Articles</h1></div>
|
<div class="article-header light-gray"><h1>Recent Articles</h1></div>
|
||||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
|
{{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
|
||||||
{{ range $paginator.Pages }}
|
{{ range $paginator.Pages }}
|
||||||
<div class="summary">
|
{{ if eq .Kind "page" }}
|
||||||
<h2><a href="{{ .Permalink }}">{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}</a></h2>
|
<div class="summary">
|
||||||
<div class="meta">
|
<h2><a href="{{ .Permalink }}">{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}</a></h2>
|
||||||
{{ .Date.Format "Jan 2, 2006" }}
|
<div class="meta">
|
||||||
{{ range .Params.categories }}
|
{{ .Date.Format "Jan 2, 2006" }}
|
||||||
#<a href="/categories/{{ . | urlize }}">{{ . }}</a>
|
{{ range .Params.categories }}
|
||||||
{{ end }}
|
#<a href="/categories/{{ . | urlize }}">{{ . }}</a>
|
||||||
{{ range .Params.tags }}
|
{{ end }}
|
||||||
#<a href="/tags/{{ . | urlize }}">{{ . }}</a>
|
{{ range .Params.tags }}
|
||||||
{{ end }}: {{ .Description }}
|
#<a href="/tags/{{ . | urlize }}">{{ . }}</a>
|
||||||
</div>
|
{{ end }}: {{ .Description }}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
@ -26,7 +28,7 @@
|
||||||
<!-- Paginator Section Layout
|
<!-- Paginator Section Layout
|
||||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||||
<nav>
|
<nav>
|
||||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}
|
{{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
|
||||||
{{ if .Paginator.HasPrev }}
|
{{ if .Paginator.HasPrev }}
|
||||||
<a href="{{ .Paginator.Prev.URL }}">Prev</a>
|
<a href="{{ .Paginator.Prev.URL }}">Prev</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue