1
0
forked from BgLUG/bglug.it

visualizzazione autore (#222)

visualizzazione dell'autore sia sulla lista dei post/eventi che nella visualizzazione dell'evento stesso.

supporta markdown

Reviewed-on: BgLUG/bglug.it#222
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
Paolo Asperti 2024-09-13 18:31:41 +00:00 committed by Paolo Asperti
parent e28d08b476
commit a64f9489f7
2 changed files with 6 additions and 0 deletions

View File

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

View File

@ -2,6 +2,9 @@
<header> <header>
<h2>{{ .Title }}</h2> <h2>{{ .Title }}</h2>
<p>{{ .Description }}</p> <p>{{ .Description }}</p>
{{- with .Params.author -}}
di {{ . | markdownify }}<br/>
{{- end -}}
{{ if .Site.Params.show_post_dates | default true }} {{ if .Site.Params.show_post_dates | default true }}
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }} {{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
{{ end }} {{ end }}