diff --git a/archetypes/evento/index.en.md b/archetypes/evento/index.en.md index a4a4aa09..214d4673 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 29c36690..fb3fe686 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 60833fde..cf08e2cc 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 5064c130..7e430b3a 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 diff --git a/assets/sass/custom.scss b/assets/sass/custom.scss index ce9cc96d..4218f9b0 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/i18n/en.yaml b/i18n/en.yaml index d29d9fed..c7304b9c 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 5d709a17..a4734e2a 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 e94fe5b5..3748a5d5 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 -}} +