You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hugo-theme-mini/layouts/partials/post-list.html

19 lines
685 B
HTML

<ul id="post-list">
{{ range where .Paginator.Pages "Params.hidden" "ne" "true" }}
{{ $url := replace .Permalink .Site.BaseURL "" }}
{{ if ne $url "about/" }}
<li>
<a href='{{ .Permalink }}'><aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>
<a href='{{ .Permalink }}'>
{{ if .Site.Params.useDescriptionAsTitle }}
{{ .Description }} <h2>{{ .Title | markdownify }}</h2>
{{ else }}
{{ .Title }} <h2>{{ .Description | markdownify }}</h2>
{{ end }}
</a>
</li>
{{ end }}
{{ end }}
</ul>