From 9a4423b30d13164a22ea66263c5b33a83b25a11a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 15 Apr 2022 17:23:40 +0300 Subject: 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. --- _includes/jekyll-theme/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %} -- cgit v1.2.3