hugo-book-theme/layouts/partials/docs/post-meta.html

24 lines
580 B
HTML
Raw Permalink Normal View History

2021-05-03 22:05:25 +02:00
{{ with .Date }}
<h5>{{ partial "docs/date" (dict "Date" . "Format" $.Site.Params.BookDateFormat) }}</h5>
2019-12-19 17:22:12 +01:00
{{ end }}
{{ range $taxonomy, $_ := .Site.Taxonomies }}
{{ with $terms := $.GetTerms $taxonomy }}
2020-01-17 21:31:26 +01:00
<div>
{{ range $n, $term := $terms }}{{ if $n }}, {{ end }}
<a href="{{ $term.RelPermalink }}">{{ $term.Title }}</a>
2019-12-19 17:22:12 +01:00
{{- end }}
2020-01-17 21:31:26 +01:00
</div>
2019-12-19 17:22:12 +01:00
{{ end }}
{{ end }}
2021-05-03 22:05:25 +02:00
{{ if .Params.image }}
<p>
{{ with .Resources.GetMatch .Params.image }}
<img src={{ .RelPermalink }} />
{{ else }}
<img src={{ .Params.image | relURL }} />
{{ end }}
</p>
2021-05-03 22:05:25 +02:00
{{ end }}