link a pagina autore
All checks were successful
Linting markdown on PR / unicode-check (pull_request) Successful in 1m1s

This commit is contained in:
Paolo Asperti 2024-09-17 22:24:54 +02:00
parent 25b9441c29
commit 91bda273c8
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 19 additions and 6 deletions

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 }}