Write styles and templates for a more generic tag/value component. Use this component for the taxonomy lists, draft tag, and page dates in the summary template.
16 lines
625 B
HTML
16 lines
625 B
HTML
<article class="page-summary">
|
|
<header class="page-summary__heading">
|
|
<h2 class="page-summary__title"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a></h2>
|
|
</header>
|
|
{{ if (.Params.rendersSummary | default true) -}}
|
|
{{ with .Description }}
|
|
<div class="page-summary__content">{{ . | markdownify }}</div>
|
|
{{ end }}
|
|
{{- end }}
|
|
{{- if ne hugo.Environment "production" -}}
|
|
{{ partial "page/taxonomy_draft.html" (dict "page" . "class" "page-summary__draft") }}
|
|
{{- end -}}
|
|
{{- if .Date -}}
|
|
{{- partial "page/date.html" (dict "page" . "class" "page-summary__date") -}}
|
|
{{- end }}
|
|
</article>
|