authors #237

Merged
paspo merged 6 commits from paspo/bglug.it:authors into main 2024-09-18 13:25:25 +00:00
2 changed files with 19 additions and 6 deletions
Showing only changes of commit 91bda273c8 - Show all commits

View File

@ -39,9 +39,16 @@
<a href="{{ .RelPermalink }}" class="image left"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></a>
<div class="inner">
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
{{- with .Params.author -}}
di {{ . | markdownify }}<br/>
{{- end -}}
{{- with .GetTerms "author" }}
{{- range . -}}
<div class="author">
di <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
</div>
{{- end }}
{{- end }}
{{ if .Site.Params.show_post_dates | default true }}
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
{{ end }}

View File

@ -2,9 +2,15 @@
<header>
<h2>{{ .Title }}</h2>
<p>{{ .Description }}</p>
{{- with .Params.author -}}
<div class="author">di {{ . | markdownify }}</div>
{{- end -}}
{{- with .GetTerms "author" }}
{{- range . -}}
<div class="author">
di <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
</div>
{{- end }}
{{- end }}
{{ if .Site.Params.show_post_dates | default true }}
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
{{ end }}