This is to change the post list page behaviour to list up the articles belonging to the post category, not all the posts regardless of the categories.
33 lines
1.0 KiB
HTML
33 lines
1.0 KiB
HTML
{{ partial "header-content.html" . }}
|
||
|
||
<!-- Main Section Layout
|
||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||
<main id="single" role="main">
|
||
<div class="article-header">
|
||
<h1>{{ .Title }}</h1>
|
||
<div class="meta">
|
||
{{ .Date.Format "Jan 2, 2006" }}
|
||
{{ range .Params.categories }}
|
||
#<a href="/categories/{{ . | urlize }}">{{ . }}</a>
|
||
{{ end }}
|
||
{{ range .Params.tags }}
|
||
#<a href="/tags/{{ . | urlize }}">{{ . }}</a>
|
||
{{ end }}: {{ .Description }}
|
||
</div>
|
||
</div>
|
||
<article>
|
||
{{ .Content }}
|
||
|
||
</main>
|
||
|
||
<nav class="pagination">
|
||
{{ with .PrevInSection }}
|
||
<span class="previous">← <a href="{{ .Permalink }}" rel="prev">{{ .Title }}</a></span>
|
||
{{ end }}
|
||
{{ with .NextInSection }}
|
||
<span class="next"><a href="{{ .Permalink }}" rel="next">{{ .Title }}</a> →</span>
|
||
{{ end }}
|
||
</nav>
|
||
|
||
{{ partial "footer.html" . }}
|