From 368d43825871dc338fd8a7a4ed409bc92724c209 Mon Sep 17 00:00:00 2001 From: Fabio Lovato Date: Sun, 21 May 2023 16:16:12 +0200 Subject: [PATCH] Adattamenti grafici minori --- content/chi-siamo/index.md | 1 + .../2022-10-13 linux-day-este-2022/index.md | 1 + .../index.md | 1 + content/news/2023-01-14 coderdojo/index.md | 1 + .../news/2023-04-28 attivita-maggio/index.md | 1 + .../news/2023-05-19 incontri-linux/index.md | 3 +- layouts/news/list.html | 98 ++++++++-------- layouts/news/single.html | 107 +++++++++--------- layouts/partials/page.html | 66 +++++------ layouts/progetti/single.html | 100 ++++++++-------- themes/hugo-coder | 1 + 11 files changed, 197 insertions(+), 183 deletions(-) create mode 160000 themes/hugo-coder diff --git a/content/chi-siamo/index.md b/content/chi-siamo/index.md index cdb82f8..31eb224 100755 --- a/content/chi-siamo/index.md +++ b/content/chi-siamo/index.md @@ -2,6 +2,7 @@ title: Chi siamo slug: chi-siamo date: 2022-12-19T22:16:00+02:00 +IgnoreTableOfContents: true include_donations: true --- diff --git a/content/news/2022-10-13 linux-day-este-2022/index.md b/content/news/2022-10-13 linux-day-este-2022/index.md index 39836cc..b2d0439 100644 --- a/content/news/2022-10-13 linux-day-este-2022/index.md +++ b/content/news/2022-10-13 linux-day-este-2022/index.md @@ -8,6 +8,7 @@ slug: linux-day-2022-este images: - linuxday_fullcolor.jpg layout: news +fullcover: true tags: - linux - linuxday diff --git a/content/news/2022-10-23 post-linux-day-este-2022/index.md b/content/news/2022-10-23 post-linux-day-este-2022/index.md index 5699c4e..97b9aff 100644 --- a/content/news/2022-10-23 post-linux-day-este-2022/index.md +++ b/content/news/2022-10-23 post-linux-day-este-2022/index.md @@ -8,6 +8,7 @@ slug: post-linux-day-2022-este images: - post-linux-day.jpg layout: news +fullcover: true tags: - linux - linuxday diff --git a/content/news/2023-01-14 coderdojo/index.md b/content/news/2023-01-14 coderdojo/index.md index 5664627..4375b4e 100644 --- a/content/news/2023-01-14 coderdojo/index.md +++ b/content/news/2023-01-14 coderdojo/index.md @@ -8,6 +8,7 @@ slug: coderdojo-14-gennaio-2023 images: - coderdojo.jpg layout: news +fullcover: true tags: - coderdojo - scratch diff --git a/content/news/2023-04-28 attivita-maggio/index.md b/content/news/2023-04-28 attivita-maggio/index.md index 76b8b48..e6f4bf2 100644 --- a/content/news/2023-04-28 attivita-maggio/index.md +++ b/content/news/2023-04-28 attivita-maggio/index.md @@ -6,6 +6,7 @@ IgnoreTableOfContents: true authors: - loviuz slug: attivita-maggio-2023 +fullcover: true images: - openit-este-maggio.webp layout: news diff --git a/content/news/2023-05-19 incontri-linux/index.md b/content/news/2023-05-19 incontri-linux/index.md index 8e42040..4266bc4 100644 --- a/content/news/2023-05-19 incontri-linux/index.md +++ b/content/news/2023-05-19 incontri-linux/index.md @@ -9,6 +9,7 @@ slug: passa-a-linux images: - passa-a-linux.webp layout: news +fullcover: true tags: - linux - tecnologie @@ -43,8 +44,6 @@ Inoltre, l'uso di tecnologie chiuse può comportare **rischi per la democrazia** Questo rappresenta un **grave rischio per la democrazia**, poiché la manipolazione dell'opinione pubblica attraverso i dati personali deglɜ utenti potrebbe influenzare l'esito delle elezioni e minare la fiducia nel processo democratico. Inoltre, l'uso di tecnologie chiuse potrebbe aumentare il **divario tecnologico** tra i paesi sviluppati e quelli in via di sviluppo, poiché i paesi più ricchi hanno più accesso alle tecnologie avanzate, mentre i paesi meno sviluppati sono più vulnerabili agli attacchi informatici e alla raccolta di dati non autorizzata. -![Passa a Linux!](passa-a-linux.webp) - ## Che cosa facciamo? diff --git a/layouts/news/list.html b/layouts/news/list.html index 6cdd454..226bc46 100644 --- a/layouts/news/list.html +++ b/layouts/news/list.html @@ -1,69 +1,69 @@ {{ define "title" }} - {{ title (i18n (lower .Title)) | default .Title }} · {{ .Site.Title }} +{{ title (i18n (lower .Title)) | default .Title }} · {{ .Site.Title }} {{ end }} {{ define "content" }} -
+

- - {{- if eq .Kind "term" -}} - {{- i18n .Data.Plural 1 | title -}} - {{- print ": " -}} - {{- end -}} - {{- i18n (lower .Title) | default .Title | title -}} - + + {{- if eq .Kind "term" -}} + {{- i18n .Data.Plural 1 | title -}} + {{- print ": " -}} + {{- end -}} + {{- i18n (lower .Title) | default .Title | title -}} +

{{ .Content }}
    - {{ range .Paginator.Pages }} + {{ range .Paginator.Pages }} {{ if .Params.images }} - {{ $image := .Resources.GetMatch (index (.Params.images) 0) }} - {{ if $image }} -
  • - {{ $image := $image.Resize "x480" }} - {{ $image := $image.Crop "480x350" }} -
  • + {{ $image := $image.Resize "x350" }} + {{ $image := $image.Crop "480x350" }} + + + -
    - +
    + - - + + {{ i18n "reading_time" .ReadingTime }} - -
    -
    +
    +
    +
    - {{ .Title }}
    - {{ .Params.description }}. -

    + {{ .Title }}
    + {{ .Params.description }}. +

    - {{ if .Params.tags }} -
    - - {{- range $index, $el := .Params.tags -}} - {{- if gt $index 0 }} - - {{- end }} - - {{ . }} - - {{- end -}} -
    - {{ end }} -
    -
  • - {{ end }} + {{ if .Params.tags }} +
    + + {{- range $index, $el := .Params.tags -}} + {{- if gt $index 0 }} + + {{- end }} + + {{ . }} + + {{- end -}} +
    + {{ end }} +
    + + {{ end }} + {{ end }} {{ end }} - {{ end }}
{{ partial "pagination.html" . }} -
-{{ end }} +
+{{ end }} \ No newline at end of file diff --git a/layouts/news/single.html b/layouts/news/single.html index ba4e893..0a64263 100644 --- a/layouts/news/single.html +++ b/layouts/news/single.html @@ -1,65 +1,70 @@ {{ define "title" }} - {{ .Title }} · {{ .Site.Title }} +{{ .Title }} · {{ .Site.Title }} {{ end }} {{ define "content" }} -
+
{{ if .Section }} - Torna alle {{.Section}} + Torna alle {{.Section}} {{ end }}
-
-
-

- - {{ .Title }} - -

+
+
+

+ + {{ .Title }} + +

+
+ +
+ +
+ {{ with .Resources.GetMatch (index (.Params.images) 0) }} + {{ $image := . }} + {{ $image_cropped := .Crop "1280x250" }} + + {{ if $.Page.Params.fullcover }} + + {{ else }} + + {{ end }} + {{ end }} + + {{ if not .Params.IgnoreTableOfContents }} + {{ .TableOfContents }} + {{ end }} + {{ .Content | safeHTML }}
- -
-
- {{ with .Resources.GetMatch (index (.Params.images) 0) }} - {{ $image := . }} - {{ $image := $image.Crop "1280x250" }} - - {{ end }} - - {{ if not .Params.IgnoreTableOfContents }} - {{ .TableOfContents }} - {{ end }} - {{ .Content | safeHTML }} -
- - {{ partial "socialshare.html" . }} + {{ partial "socialshare.html" . }} - {{ partial "donations.html" . }} + {{ partial "donations.html" . }} -
- {{ partial "posts/series.html" . }} - {{ partial "posts/disqus.html" . }} - {{ partial "posts/commento.html" . }} - {{ partial "posts/utterances.html" . }} -
+
+ {{ partial "posts/series.html" . }} + {{ partial "posts/disqus.html" . }} + {{ partial "posts/commento.html" . }} + {{ partial "posts/utterances.html" . }} +
{{ partial "posts/math.html" . }} -
-{{ end }} +
+{{ end }} \ No newline at end of file diff --git a/layouts/partials/page.html b/layouts/partials/page.html index 02479a1..4f0df9a 100755 --- a/layouts/partials/page.html +++ b/layouts/partials/page.html @@ -1,39 +1,41 @@
- {{ if .Section }} + {{ if .Section }} Torna a {{.Section}} - {{ end }} -
-
-

- - {{ .Title }} - -

+ {{ end }} +
+
+

+ + {{ .Title }} + +

- {{ if .Params.tags }} -
    - {{ range .Params.tags }} -
  • #{{ . }}
  • - {{ end }} -
- {{ end }} -
+ {{ if .Params.tags }} +
    + {{ range .Params.tags }} +
  • #{{ . }}
  • + {{ end }} +
+ {{ end }} +
-
- {{ with .Resources.GetMatch (index (.Params.images) 0) }} - {{ $image := . }} - {{ $image := $image.Crop "1280x250" }} - - {{ end }} +
+ {{ with .Resources.GetMatch (index (.Params.images) 0) }} + {{ $image := . }} + {{ $image := $image.Crop "1280x250" }} + + {{ end }} - {{ .TableOfContents }} - {{ .Content | safeHTML }} -
-
+ {{ if not .Params.IgnoreTableOfContents }} + {{ .TableOfContents }} + {{ end }} + {{ .Content | safeHTML }} + + - {{ partial "socialshare.html" . }} - - {{ if .Params.include_donations }} + {{ partial "socialshare.html" . }} + + {{ if .Params.include_donations }} {{ partial "donations.html" . }} - {{ end }} -
+ {{ end }} + \ No newline at end of file diff --git a/layouts/progetti/single.html b/layouts/progetti/single.html index 48d168f..b87ed54 100644 --- a/layouts/progetti/single.html +++ b/layouts/progetti/single.html @@ -1,63 +1,65 @@ {{ define "title" }} - {{ .Title }} · {{ .Site.Title }} +{{ .Title }} · {{ .Site.Title }} {{ end }} {{ define "content" }} -
+
{{ if .Section }} - Torna alle {{.Section}} + Torna alle {{.Section}} {{ end }}
-
-
-

- - {{ .Title }} - -

+
+
+

+ + {{ .Title }} + +

+
+ +
+ +
+ {{ with .Resources.GetMatch (index (.Params.images) 0) }} + {{ $image := . }} + {{ $image := $image.Crop "1280x250" }} + + {{ end }} + + {{ if not .Params.IgnoreTableOfContents }} + {{ .TableOfContents }} + {{ end }} + {{ .Content | safeHTML }}
- -
-
- {{ with .Resources.GetMatch (index (.Params.images) 0) }} - {{ $image := . }} - {{ $image := $image.Crop "1280x250" }} - - {{ end }} - - {{ .TableOfContents }} - {{ .Content | safeHTML }} -
- - {{ partial "socialshare.html" . }} + {{ partial "socialshare.html" . }} - {{ partial "donations.html" . }} + {{ partial "donations.html" . }} -
- {{ partial "posts/series.html" . }} - {{ partial "posts/disqus.html" . }} - {{ partial "posts/commento.html" . }} - {{ partial "posts/utterances.html" . }} -
+
{{ partial "posts/math.html" . }} -
-{{ end }} +
+{{ end }} \ No newline at end of file diff --git a/themes/hugo-coder b/themes/hugo-coder new file mode 160000 index 0000000..1fb96cf --- /dev/null +++ b/themes/hugo-coder @@ -0,0 +1 @@ +Subproject commit 1fb96cf9a920c46e01f3c0736cf01770c041617e