diff --git a/_data/license.yml b/_data/license.yml deleted file mode 100644 index cd19f4f..0000000 --- a/_data/license.yml +++ /dev/null @@ -1,18 +0,0 @@ -# License data. -# -# v2.1 -# https://github.com/cotes2020/jekyll-theme-chirpy -# © 2020 Cotes Chung -# MIT Licensed - -icons: - - "fab fa-creative-commons" - - "fab fa-creative-commons-by" - -type: "CC BY 4.0" - -statment: >- - The blog posts on this site are licensed - under the Creative Commons Attribution 4.0 International (CC BY 4.0) License. - -link: "https://creativecommons.org/licenses/by/4.0/" diff --git a/_data/right.yml b/_data/right.yml new file mode 100644 index 0000000..50e5152 --- /dev/null +++ b/_data/right.yml @@ -0,0 +1,21 @@ +# License data. +# +# v2.1 +# https://github.com/cotes2020/jekyll-theme-chirpy +# © 2020 Cotes Chung +# MIT Licensed + + +license: + link: "https://creativecommons.org/licenses/by/4.0/" + prompt: This post is licensed under + name: CC BY 4.0 + icons: + - "fab fa-creative-commons" + - "fab fa-creative-commons-by" + +brief: Some rights reserved. + +verbose: >- + The blog posts on this site are licensed + under the Creative Commons Attribution 4.0 International (CC BY 4.0) License. \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index 7f1b37a..31da5a4 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -12,9 +12,9 @@

© {{ 'now' | date: "%Y" }} {{ site.social.name }}. - {% if site.data.license.statment %} + {% if site.data.right.brief %} Some rights reserved. + title="{{ site.data.right.verbose }}">{{ site.data.right.brief }} {% endif %}

diff --git a/_layouts/post.html b/_layouts/post.html index cb93118..2c90ffc 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -83,14 +83,15 @@ layout: default
- {% if site.data.license.type %} + {% if site.data.right.license %}
- This post is licensed under - - {{ site.data.license.type }} - {% for icon in site.data.license.icons %} + + {{ site.data.right.license.prompt }} + + {{ site.data.right.license.name }} + {% for icon in site.data.right.license.icons %} - {% endfor %} + {% endfor %}