tema hugo-arcana #74

Merged
paspo merged 14 commits from paspo/bglug.it:arcane into main 2024-07-09 21:10:04 +00:00
Showing only changes of commit 4cbce336b8 - Show all commits

View File

@ -0,0 +1,31 @@
{{ define "main" }}
<header>
<h2>{{ .Title }}</h2>
<p>{{ .Description }}</p>
{{ if .Site.Params.show_post_dates | default true }}
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
{{ end }}
{{ partial "tags.html" . }}
</header>
{{- if or .Params.image }}
{{- $featimg := "#" -}}
{{- if .Params.image -}}
{{/* se è stata definita un'immagine featured */}}
{{- $img := .Page.Resources.GetMatch .Params.image -}}
{{- $featimg = $img.RelPermalink -}}
{{- end -}}
{{- if .Params.featured -}}
{{/* se è stata definita un'immagine featured */}}
{{- $img := .Page.Resources.GetMatch .Params.featured -}}
{{- $featimg = $img.RelPermalink -}}
{{- end -}}
<span class="image featured poppo"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></span>
{{ end }}
{{- .Content }}
{{ end }}