Nuova pagina del tema con immagini

This commit is contained in:
2026-02-20 22:27:35 +01:00
parent 9c60b2493a
commit bd8d9f4282
6 changed files with 102 additions and 5 deletions

View File

@ -31,7 +31,7 @@
<div>
{{ .Content }}
</div>
<br>
</div>
</div>

View File

@ -0,0 +1,93 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "headers.html" . }}
{{ partial "custom_headers.html" . }}
</head>
<body>
<div id="all">
{{ partial "top.html" . }}
{{ partial "nav.html" . }}
{{ partial "breadcrumbs.html" . }}
<div id="content">
{{ if isset .Params "id" }}
{{ partial .Params.id . }}
{{ else }}
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page-content">
<!-- BLOCCO 1: immagine a DESTRA -->
{{ if .Params.image1 }}
<div class="row page-section">
<div class="col-md-7">
{{ .Content }}
</div>
<div class="col-md-5 page-image">
<img src="{{ .Params.image1 }}"
alt="{{ .Params.image1_alt }}"
class="img-responsive img-rounded">
</div>
</div>
{{ else }}
{{ .Content }}
{{ end }}
<!-- BLOCCO 2: immagine a SINISTRA -->
{{ if .Params.image2 }}
<div class="row page-section" style="margin-top:50px;">
<div class="col-md-5 page-image">
<img src="{{ .Params.image2 }}"
alt="{{ .Params.image2_alt }}"
class="img-responsive img-rounded">
</div>
<div class="col-md-7">
<!-- eventuale testo aggiuntivo -->
</div>
</div>
{{ end }}
</div>
<br>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
{{ end }}
</div>
<!-- /#content -->
{{ partial "footer.html" . }}
</div>
<!-- /#all -->
{{ partial "scripts.html" . }}
</body>
</html>