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

@ -1,6 +1,10 @@
+++
title = "MyDesk B2B"
type = "page"
type = "pageimg"
image1 = "/img/macbook-air-on-desk.jpg"
image2 = "/img/notes.jpg"
image1_alt = "Descrizione immagine 1"
image2_alt = "Descrizione immagine 2"
+++

View File

@ -7,4 +7,4 @@ description: >
<li>Scopri come lavoriamo</li>
</ul>
image: "img/carousel/c1a.jpg"
href: ""
href: "/contact"

View File

@ -6,4 +6,4 @@ description: >
<li>Analizziamo, semplifichiamo e trasformiamo i processi in sistemi digitali efficienti e integrati.</li>
</ul>
image: "img/carousel/c2a.jpg"
href: ''
href: '/contact'

View File

@ -7,4 +7,4 @@ description: >
<li>Parliamo del tuo progetto</li>
</ul>
image: "img/carousel/c3a.jpg"
href: ""
href: "/contact"

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>