aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-09 23:57:28 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-10 00:03:36 +0300
commit3f57fd8d3b2d60a9085921f934b455f1ca5cc920 (patch)
tree79717c35ad50cb15a3b87d90cdde8050bcc7f298
parentadd GitHub Actions workflow (diff)
downloadjekyll-theme-3f57fd8d3b2d60a9085921f934b455f1ca5cc920.tar.gz
jekyll-theme-3f57fd8d3b2d60a9085921f934b455f1ca5cc920.zip
footer: configurable license
-rw-r--r--_config.yml3
-rw-r--r--_includes/common/footer.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/_config.yml b/_config.yml
index 1a4dd85..0dd7a7c 100644
--- a/_config.yml
+++ b/_config.yml
@@ -4,7 +4,6 @@ baseurl: ''
exclude:
- Gemfile
- Gemfile.lock
- - LICENSE.txt
- README.md
defaults:
@@ -45,6 +44,8 @@ settings:
project:
name: jekyll-theme
description: jekyll-theme preview
+ license: MIT License
+ license_file: LICENSE.txt
author:
name: John Doe
email: John.Doe@example.com
diff --git a/_includes/common/footer.html b/_includes/common/footer.html
index 8e7c977..769ac7c 100644
--- a/_includes/common/footer.html
+++ b/_includes/common/footer.html
@@ -6,7 +6,7 @@
<div style="display: table; width: 100%;">
<div style="display: table-row;">
<div style="display: table-cell;">
- <div class="text-center text-muted"><small>This project is licensed under the terms of the MIT License. See <a href="{{ site.github.repository_url }}/blob/{{ site.github.source.branch }}/README.md#license">License</a> for details.</small></div>
+ <div class="text-center text-muted"><small>This project is licensed under the terms of the {{ site.settings.project.license }}. See <a href="{{ '/' | relative_url }}{{ site.settings.project.license_file }}">License</a> for details.</small></div>
</div>
</div>
<div style="display: table-row;">