File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed
Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -99,11 +99,15 @@ footer:
9999
100100# Creative Commons 4.0 International License.
101101# See: https://creativecommons.org/share-your-work/licensing-types-examples
102- # Available values: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
102+ # Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
103+ # You can set a language value if you prefer a translated version of CC license.
104+ # CC licenses are available in 39 languages, where you can find the specific and correct abbreviation you need.
105+ # Valid values of language: deed.zh, deed.fr, deed.de , etc.
103106creative_commons :
104107 license : by-nc-sa
105108 sidebar : false
106109 post : false
110+ language :
107111
108112
109113# ---------------------------------------------------------------
Original file line number Diff line number Diff line change 112112
113113 {% if theme.creative_commons .license and theme.creative_commons .sidebar %}
114114 <div class =" cc-license motion-element" itemprop=" license" >
115+ {% set ccLanguage = theme.creative_commons .language %}
115116 {% if theme.creative_commons .license === ' zero' %}
116- {% set ccType = ' publicdomain/zero/1.0/' %}
117+ {% set ccType = ' publicdomain/zero/1.0/' + ccLanguage %}
117118 {% else %}
118- {% set ccType = ' licenses/' + theme.creative_commons .license + ' /4.0/' %}
119+ {% set ccType = ' licenses/' + theme.creative_commons .license + ' /4.0/' + ccLanguage %}
119120 {% endif %}
120121 {% set ccURL = ' https://creativecommons.org/' + ccType %}
121122 {% set ccImage = ' <img src="' + url_for (theme.images + ' /cc-' + theme.creative_commons .license + ' .svg' ) + ' " alt="Creative Commons"/>' %}
Original file line number Diff line number Diff line change 11{% set ccLicense = theme.creative_commons .license | lower %}
2+ {% set ccLanguage = theme.creative_commons .language %}
23{% set ccIcon = ' <i class="fa fa-fw fa-creative-commons"></i>' %}
34{% set ccText = ccLicense | upper %}
45{% if ccLicense === ' zero' %}
5- {% set ccType = ' publicdomain/zero/1.0/' %}
6+ {% set ccType = ' publicdomain/zero/1.0/' + ccLanguage %}
67{% else %}
7- {% set ccType = ' licenses/' + ccLicense + ' /4.0/' %}
8+ {% set ccType = ' licenses/' + ccLicense + ' /4.0/' + ccLanguage %}
89{% endif %}
910{% set ccURL = ' https://creativecommons.org/' + ccType %}
1011
You can’t perform that action at this time.
0 commit comments