aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-15 17:23:40 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-15 17:23:40 +0300
commit9a4423b30d13164a22ea66263c5b33a83b25a11a (patch)
tree0103af00d4a02e53b02b2c7549ce1459c7c46e53
parentfooter: "Last update" -> "Build" (diff)
downloadjekyll-theme-9a4423b30d13164a22ea66263c5b33a83b25a11a.tar.gz
jekyll-theme-9a4423b30d13164a22ea66263c5b33a83b25a11a.zip
footer: fix license file detection
I don't know how I tested it exactly. Use-case: * There's a LICENSE.txt file. * jekyll-github-metadata is used, and site.github.license is defined. What I want in the footer: a site.github.license.name link that leads to LICENSE.txt. What I had before this commit: a site.github.license.name link that lead to spdx.org.
-rw-r--r--_includes/jekyll-theme/footer.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/_includes/jekyll-theme/footer.html b/_includes/jekyll-theme/footer.html
index acea458..78e5eda 100644
--- a/_includes/jekyll-theme/footer.html
+++ b/_includes/jekyll-theme/footer.html
@@ -9,7 +9,7 @@
{% else %}
{% for file in site.static_files %}
{% assign path = file.path | downcase %}
- {% if path == 'license' or path == 'license.txt' %}
+ {% if path == '/license' or path == '/license.txt' %}
{% assign license_file = file.path | relative_url %}
{% endif %}
{% endfor %}