itsdrike.com/layouts/partials/list_item.html

17 lines
670 B
HTML
Raw Normal View History

<!--
Note: This partial is expected to be called with special syntax of:
partial "list_item.html" (dict "context" . "dateformat" "Jan 02, 2006")
2022-05-11 12:04:08 +00:00
This allows it to take "dateformat" as a variable, so it can differ between calls.
-->
2022-05-11 12:04:08 +00:00
<a class="item-name" href="{{ .context.RelPermalink }}">
<span class="item-title">{{ .context.Title }}</span>
{{ if not .context.Date.IsZero }}
<span class="item-day">{{ .context.Date.Format .dateformat }}</span>
2022-05-11 12:04:08 +00:00
{{ end }}
</a>
<small class="item-details">{{ partial "content-details.html" .context }}</small>
2022-05-11 12:04:08 +00:00
<!-- TODO: Only show summary on hover? -->
<p class="item-summary">{{ partial "summary.html" .context }}</p>