hugo-theme-termlite/layouts/_default/page_summary.html

23 lines
840 B
HTML

<article class="page-summary">
{{ if and (.Params.rendersSummary | default true) (gt (len .Description) 0) -}}
<hgroup class="page-summary__heading">
<h3><a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a></h3>
{{ with .Description }}
<p>{{ . | markdownify }}</p>
{{ end }}
</hgroup>
{{ else }}
<h3 class="page-summary__heading"><a href="{{ .Permalink }}">{{ .LinkTitle | markdownify }}</a></h3>
{{ end }}
{{- if .Date -}}
{{- partial "page/date.html" (dict "page" .) -}}
{{- end }}
{{- if and (not hugo.IsProduction) .Draft -}}
{{ partial "page/taxonomy_draft.html" (dict "page" .) }}
{{- end -}}
{{ partial "page/taxonomy_list.html" (dict "page" . "taxonomy" "categories") }}
{{ partial "page/taxonomy_list.html" (dict "page" . "taxonomy" "tags") }}
</article>