From bd8d9f42829861cc636e78904af49c8e62ba6a10 Mon Sep 17 00:00:00 2001 From: Maurizio Giunti Date: Fri, 20 Feb 2026 22:27:35 +0100 Subject: [PATCH] Nuova pagina del tema con immagini --- content/mydeskb2b.md | 6 +- data/carousel/c1.yaml | 2 +- data/carousel/c2.yaml | 2 +- data/carousel/c3.yaml | 2 +- .../layouts/page/single.html | 2 +- .../layouts/pageimg/single.html | 93 +++++++++++++++++++ 6 files changed, 102 insertions(+), 5 deletions(-) create mode 100644 themes/hugo-universal-theme/layouts/pageimg/single.html diff --git a/content/mydeskb2b.md b/content/mydeskb2b.md index 28bf89e..72bb7fe 100644 --- a/content/mydeskb2b.md +++ b/content/mydeskb2b.md @@ -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" +++ diff --git a/data/carousel/c1.yaml b/data/carousel/c1.yaml index 092227c..0397aac 100644 --- a/data/carousel/c1.yaml +++ b/data/carousel/c1.yaml @@ -7,4 +7,4 @@ description: >
  • Scopri come lavoriamo
  • image: "img/carousel/c1a.jpg" -href: "" +href: "/contact" diff --git a/data/carousel/c2.yaml b/data/carousel/c2.yaml index 4b657e5..4b3011d 100644 --- a/data/carousel/c2.yaml +++ b/data/carousel/c2.yaml @@ -6,4 +6,4 @@ description: >
  • Analizziamo, semplifichiamo e trasformiamo i processi in sistemi digitali efficienti e integrati.
  • image: "img/carousel/c2a.jpg" -href: '' +href: '/contact' diff --git a/data/carousel/c3.yaml b/data/carousel/c3.yaml index 747d03d..72651f9 100644 --- a/data/carousel/c3.yaml +++ b/data/carousel/c3.yaml @@ -7,4 +7,4 @@ description: >
  • Parliamo del tuo progetto
  • image: "img/carousel/c3a.jpg" -href: "" +href: "/contact" diff --git a/themes/hugo-universal-theme/layouts/page/single.html b/themes/hugo-universal-theme/layouts/page/single.html index 09f3fef..fa3bf3d 100644 --- a/themes/hugo-universal-theme/layouts/page/single.html +++ b/themes/hugo-universal-theme/layouts/page/single.html @@ -31,7 +31,7 @@
    {{ .Content }}
    - +
    diff --git a/themes/hugo-universal-theme/layouts/pageimg/single.html b/themes/hugo-universal-theme/layouts/pageimg/single.html new file mode 100644 index 0000000..dae7179 --- /dev/null +++ b/themes/hugo-universal-theme/layouts/pageimg/single.html @@ -0,0 +1,93 @@ + + + + + {{ partial "headers.html" . }} + {{ partial "custom_headers.html" . }} + + + + +
    + {{ partial "top.html" . }} + + {{ partial "nav.html" . }} + + {{ partial "breadcrumbs.html" . }} + + +
    + {{ if isset .Params "id" }} + + {{ partial .Params.id . }} + + {{ else }} + +
    + +
    + +
    + +
    + + + {{ if .Params.image1 }} +
    + +
    + {{ .Content }} +
    + +
    + {{ .Params.image1_alt }} +
    + +
    + {{ else }} + {{ .Content }} + {{ end }} + + + + {{ if .Params.image2 }} +
    + +
    + {{ .Params.image2_alt }} +
    + +
    + +
    + +
    + {{ end }} + +
    +
    +
    + +
    + + +
    + + + {{ end }} +
    + + + {{ partial "footer.html" . }} + +
    + + + {{ partial "scripts.html" . }} + + +