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

24 lines
580 B
HTML
Raw Normal View History

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