Skip to content

Commit 7e9fb16

Browse files
committed
Added more config for license.
1 parent 6728ed8 commit 7e9fb16

4 files changed

Lines changed: 30 additions & 26 deletions

File tree

_data/license.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

_data/right.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# License data.
2+
#
3+
# v2.1
4+
# https://github.com/cotes2020/jekyll-theme-chirpy
5+
# © 2020 Cotes Chung
6+
# MIT Licensed
7+
8+
9+
license:
10+
link: "https://creativecommons.org/licenses/by/4.0/"
11+
prompt: This post is licensed under
12+
name: CC BY 4.0
13+
icons:
14+
- "fab fa-creative-commons"
15+
- "fab fa-creative-commons-by"
16+
17+
brief: Some rights reserved.
18+
19+
verbose: >-
20+
The blog posts on this site are licensed
21+
under the Creative Commons Attribution 4.0 International (CC BY 4.0) License.

_includes/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<p class="mb-0">
1313
© {{ 'now' | date: "%Y" }}
1414
<a href="{{ site.social.links[0] }}">{{ site.social.name }}</a>.
15-
{% if site.data.license.statment %}
15+
{% if site.data.right.brief %}
1616
<span data-toggle="tooltip" data-placement="top"
17-
title="{{ site.data.license.statment }}">Some rights reserved</span>.
17+
title="{{ site.data.right.verbose }}">{{ site.data.right.brief }}</span>
1818
{% endif %}
1919
</p>
2020
</div>

_layouts/post.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ <h1 data-toc-skip>{{ page.title }}</h1>
8383
<div class="post-tail-bottom
8484
d-flex justify-content-between align-items-center pt-5 pb-2">
8585

86-
{% if site.data.license.type %}
86+
{% if site.data.right.license %}
8787
<div class="license-wrapper">
88-
<span class="license-text ml-1 mr-1">This post is licensed under
89-
<a href="{{ site.data.license.link }}">
90-
{{ site.data.license.type }}
91-
{% for icon in site.data.license.icons %}
88+
<span class="license-text ml-1 mr-1">
89+
{{ site.data.right.license.prompt }}
90+
<a href="{{ site.data.right.license.link }}">
91+
{{ site.data.right.license.name }}
92+
{% for icon in site.data.right.license.icons %}
9293
<i class="{{ icon }}"></i>
93-
{% endfor %}
94+
{% endfor %}
9495
</a>
9596
</span>
9697
</div>

0 commit comments

Comments
 (0)