mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-14 08:59:45 +00:00
fade059bf5
- Adds new Hugo feature (https://gohugo.io/functions/dateformat/#datetime-formatting-layouts) enabling date localization in defaults
22 lines
620 B
HTML
22 lines
620 B
HTML
{{ define "title" }}
|
|
<h1 class="bold-title is-1">{{ .Data.Singular | humanize }}: {{ lower .Title | markdownify }}</h1>
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
<div class="container">
|
|
<ul>
|
|
{{ range .Pages.ByPublishDate.Reverse }}
|
|
{{ if .Date }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Date.Format (.Site.Params.dateFormat | default ":date_medium") }} |
|
|
{{ .Title | markdownify }}</a>
|
|
</li>
|
|
{{ else }}
|
|
<li>
|
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|