mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-25 04:43:04 +00:00
24 lines
578 B
HTML
24 lines
578 B
HTML
{{ with .Date}}
|
|
<h5>{{ partial "docs/date" (dict "Date" . "Format" $.Site.Params.BookDateFormat) }}</h5>
|
|
{{ end }}
|
|
|
|
{{ range $taxonomy, $_ := .Site.Taxonomies }}
|
|
{{ with $terms := $.GetTerms $taxonomy }}
|
|
<div>
|
|
{{ range $n, $term := $terms }}{{ if $n }}, {{ end }}
|
|
<a href="{{ $term.RelPermalink }}">{{ $term.Title }}</a>
|
|
{{- end }}
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<p>
|
|
{{ if .Params.image}}
|
|
{{ with .Resources.GetMatch .Params.image }}
|
|
<img src={{ .RelPermalink }} />
|
|
{{ else }}
|
|
<img src={{ .Params.image | relURL }} />
|
|
{{ end }}
|
|
{{ end }}
|
|
</p>
|