From 9935f76530cd5a55c11e1573f900e47c40d9c33f Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 18 Feb 2020 00:32:36 +0800 Subject: [PATCH] Added more config for license. --- _data/license.yml | 18 ------------------ _data/right.yml | 21 +++++++++++++++++++++ _includes/footer.html | 4 ++-- _layouts/post.html | 13 +++++++------ 4 files changed, 30 insertions(+), 26 deletions(-) delete mode 100644 _data/license.yml create mode 100644 _data/right.yml 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 %}