bglug.it/layouts/_default/single.html
paspo 242676e252
Some checks failed
Vulnerability Scan / Daily Vulnerability Scan (push) Failing after 6s
Container Publish / build-image (push) Successful in 5m30s
aggiunte tags su elenco post (#79)
e homepage

Reviewed-on: #79
Co-authored-by: paspo <paolo@asperti.com>
Co-committed-by: paspo <paolo@asperti.com>
2024-07-10 11:30:18 +00:00

32 lines
1002 B
HTML

{{ 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"><img src="{{ $featimg }}" alt="{{ .Params.image_alt }}" /></span>
{{ end }}
{{- .Content }}
{{ end }}