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 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/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..3748a5d 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" . }}