forked from kitian616/jekyll-TeXt-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update docs, add license config
- Loading branch information
Showing
13 changed files
with
121 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CC-BY-4.0: | ||
name: Attribution 4.0 International | ||
url: https://creativecommons.org/licenses/by/4.0/ | ||
image: https://i.creativecommons.org/l/by/4.0/88x31.png | ||
CC-BY-SA-4.0: | ||
name: Attribution-ShareAlike 4.0 International | ||
url: https://creativecommons.org/licenses/by-sa/4.0/ | ||
image: https://i.creativecommons.org/l/by-sa/4.0/88x31.png | ||
CC-BY-NC-4.0: | ||
name: Attribution-NonCommercial 4.0 International | ||
url: https://creativecommons.org/licenses/by-nc/4.0/ | ||
image: https://i.creativecommons.org/l/by-nc/4.0/88x31.png | ||
CC-BY-ND-4.0: | ||
name: Attribution-NoDerivatives 4.0 International | ||
url: https://creativecommons.org/licenses/by-nd/4.0/ | ||
image: https://i.creativecommons.org/l/by-nd/4.0/88x31.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
<div class="license"> | ||
{%- assign locale = site.data.locale -%} | ||
{%- assign __locale = locale.LICENSE_ANNOUNCE -%} | ||
{%- include snippets/locale-to-string.html -%} | ||
{%- assign _license_announce = __return -%} | ||
{%- assign __path = '/assets/images/license-cc4.png' -%} | ||
{%- include snippets/prepend-baseurl.html -%} | ||
{%- assign _license_img_src = __return -%} | ||
<p>{{ _license_announce | replace: "[LICENSE]", '<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">CC-BY-NC-4.0</a>' }} | ||
<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/"> | ||
<img alt="Creative Commons License" src="{{ _license_img_src }}" /> | ||
</a> | ||
</p> | ||
</div> | ||
{%- assign __locale = site.data.locale.LICENSE_ANNOUNCE -%} | ||
{%- include snippets/locale-to-string.html -%} | ||
{%- assign _license_announce = __return -%} | ||
|
||
{%- assign _data_license = site.data.licenses-%} | ||
{%- if site.license -%} | ||
{%- assign _license = _data_license[site.license] -%} | ||
{%- endif -%} | ||
{%- if page.license != true -%} | ||
{%- assign _license = _data_license[page.license] -%} | ||
{%- endif -%} | ||
|
||
|
||
{%- if _license -%} | ||
|
||
{%-assign _license_name = '<a rel="license" href="[URL]">[NAME]</a>' | replace: "[URL]", _license.url | replace: "[NAME]", _license.name -%} | ||
<div class="license"> | ||
<p>{{ _license_announce | replace: "[LICENSE]", _license_name }} | ||
<a rel="license" href="{{ _license.url }}"> | ||
<img alt="{{ _license.name }}" src="{{ _license.image }}" /> | ||
</a> | ||
</p> | ||
</div> | ||
{%- endif -%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CC-BY-4.0: | ||
name: Attribution 4.0 International | ||
url: https://creativecommons.org/licenses/by/4.0/ | ||
image: https://i.creativecommons.org/l/by/4.0/88x31.png | ||
CC-BY-SA-4.0: | ||
name: Attribution-ShareAlike 4.0 International | ||
url: https://creativecommons.org/licenses/by-sa/4.0/ | ||
image: https://i.creativecommons.org/l/by-sa/4.0/88x31.png | ||
CC-BY-NC-4.0: | ||
name: Attribution-NonCommercial 4.0 International | ||
url: https://creativecommons.org/licenses/by-nc/4.0/ | ||
image: https://i.creativecommons.org/l/by-nc/4.0/88x31.png | ||
CC-BY-ND-4.0: | ||
name: Attribution-NoDerivatives 4.0 International | ||
url: https://creativecommons.org/licenses/by-nd/4.0/ | ||
image: https://i.creativecommons.org/l/by-nd/4.0/88x31.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters