From 4484d3fd070aab40e2147534dc57ad2508ccbea1 Mon Sep 17 00:00:00 2001 From: paspo Date: Fri, 13 Sep 2024 20:31:53 +0200 Subject: [PATCH 1/3] visualizzazione licenza post/evento --- i18n/en.yaml | 2 ++ i18n/it.yaml | 2 ++ layouts/_default/single.html | 3 +++ 3 files changed, 7 insertions(+) diff --git a/i18n/en.yaml b/i18n/en.yaml index d29d9fe..c7304b9 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1 +1,3 @@ +--- +license: License footer_license_note: Except where otherwise noted, content on this site is published under [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/) license. diff --git a/i18n/it.yaml b/i18n/it.yaml index 5d709a1..a4734e2 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -1 +1,3 @@ +--- +license: Licenza footer_license_note: Eccetto dove diversamente indicato, ogni contenuto di questo sito รจ pubblicato con licenza [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/). diff --git a/layouts/_default/single.html b/layouts/_default/single.html index e94fe5b..49ac620 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -8,6 +8,9 @@ {{ if .Site.Params.show_post_dates | default true }} {{- with .Date }}{{ end }} {{ end }} + {{- with .Params.license -}} +
{{ T "license" }}: {{ . | markdownify }} + {{ end }} {{ partial "tags.html" . }} -- 2.47.2 From 032ea4d259dbd91f518675e69dbf074756a5394d Mon Sep 17 00:00:00 2001 From: paspo Date: Fri, 13 Sep 2024 20:41:39 +0200 Subject: [PATCH 2/3] aggiornato archetipo --- archetypes/evento/index.en.md | 2 ++ archetypes/evento/index.it.md | 2 ++ archetypes/post/index.en.md | 2 ++ archetypes/post/index.it.md | 2 ++ 4 files changed, 8 insertions(+) diff --git a/archetypes/evento/index.en.md b/archetypes/evento/index.en.md index a4a4aa0..214d467 100644 --- a/archetypes/evento/index.en.md +++ b/archetypes/evento/index.en.md @@ -9,6 +9,8 @@ type: post # image: image.png # if you don't specify an image, the first available is used # image_alt: description of the featured image. The image ratio should be 360x250. # image_caption: Image credits: author and license +# if not specified, CC-BY-SA is implied +# license: "[CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/)" summary: If not present, the content will be used instead tags: - eventi diff --git a/archetypes/evento/index.it.md b/archetypes/evento/index.it.md index 29c3669..fb3fe68 100644 --- a/archetypes/evento/index.it.md +++ b/archetypes/evento/index.it.md @@ -9,6 +9,8 @@ type: post # image: image.png # se non metti un'immagine, viene presa la prima immagine del post # image_alt: "Descrizione dell'immagine. Il ratio dell'immagine deve essere 360x250." # image_caption: Credits dell'immagine: autore e licenza +# se non indicato, si intente CC-BY-SA +# license: "[CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/)" summary: Se non presente, usa il testo dell'articolo tags: - eventi diff --git a/archetypes/post/index.en.md b/archetypes/post/index.en.md index 60833fd..cf08e2c 100644 --- a/archetypes/post/index.en.md +++ b/archetypes/post/index.en.md @@ -9,6 +9,8 @@ type: post # image: image.png # if you don't specify an image, the first available is used # image_alt: description of the featured image. The image ratio should be 360x250. # image_caption: Image credits: author and license +# if not specified, CC-BY-SA is implied +# license: "[CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/)" summary: If not present, the content will be used instead tags: - news diff --git a/archetypes/post/index.it.md b/archetypes/post/index.it.md index 5064c13..7e430b3 100644 --- a/archetypes/post/index.it.md +++ b/archetypes/post/index.it.md @@ -9,6 +9,8 @@ type: post # image: image.png # se non metti un'immagine, viene presa la prima immagine del post # image_alt: "Descrizione dell'immagine. Il ratio dell'immagine deve essere 360x250." # image_caption: Credits dell'immagine: autore e licenza +# se non indicato, si intente CC-BY-SA +# license: "[CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/)" summary: Se non presente, usa il testo dell'articolo tags: - news -- 2.47.2 From fb4d51ba28460e9871d862479eda914d2ec5b32c Mon Sep 17 00:00:00 2001 From: paspo Date: Fri, 13 Sep 2024 22:13:38 +0200 Subject: [PATCH 3/3] fix css - font size --- assets/sass/custom.scss | 5 +++++ layouts/_default/single.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/sass/custom.scss b/assets/sass/custom.scss index ce9cc96..4218f9b 100644 --- a/assets/sass/custom.scss +++ b/assets/sass/custom.scss @@ -172,3 +172,8 @@ div.highlight pre code > span::before { } } } + + +article header div.license { + font-size: 1rem; +} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 49ac620..3748a5d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,7 +9,7 @@ {{- with .Date }}{{ end }} {{ end }} {{- with .Params.license -}} -
{{ T "license" }}: {{ . | markdownify }} +
{{ T "license" }}: {{ . | markdownify }}
{{ end }} {{ partial "tags.html" . }} -- 2.47.2