2022-05-11 12:04:08 +00:00
|
|
|
<!-- Obtain "dateformat" from scratchpad (or fall back to default) -->
|
|
|
|
{{ if not (.Scratch.Get "dateformat") }}
|
|
|
|
{{ .Scratch.Set "dateformat" "Jan 02, 2006" }}
|
|
|
|
{{ end }}
|
|
|
|
{{ $dateformat := .Scratch.Get "dateformat" }}
|
|
|
|
<!-- Reset scratchpad for next use (in next page) - avoids using old values -->
|
|
|
|
{{ .Scratch.Set "dateformat" nil }}
|
|
|
|
|
|
|
|
|
2022-05-11 13:36:35 +00:00
|
|
|
<a class="item-name" href="{{ .RelPermalink }}">
|
2022-05-11 12:04:08 +00:00
|
|
|
<span class="item-title">{{ .Title }}</span>
|
|
|
|
{{ if not .Date.IsZero }}
|
|
|
|
<span class="item-day">{{ .Date.Format $dateformat }}</span>
|
|
|
|
{{ end }}
|
|
|
|
</a>
|
|
|
|
<small class="item-details">{{ partial "content-details.html" . }}</small>
|
|
|
|
<!-- TODO: Only show summary on hover? -->
|
|
|
|
<p class="item-summary">{{ partial "summary.html" . }}</p>
|