Files
hugo-coder-timeline/layouts/partials/list.html
Gabriel Monteiro Nepomuceno 4ff77035f6 Easy customize (#138)
* Making easy to customize listing

* adding styles to listing

* removing unintended changes

* correcting declaration

* including files for release

* changing url to be relative so it can work on localhost

* Including suggestions
2019-01-16 13:16:24 -02:00

20 lines
487 B
HTML

<section class="container list">
<h1 class="title">
{{- if eq .Kind "taxonomy" -}}
{{- .Data.Singular | title -}}
{{- print ": " -}}
{{- end -}}
{{- .Title -}}
</h1>
<ul>
{{ range .Paginator.Pages }}
<li>
<span class="date">{{ .Date.Format (.Site.Params.dateFormat | default "January 2, 2006" ) }}</span>
<a class="title" href="{{ .URL }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
{{ partial "pagination.html" . }}
</section>