From d703cd9c5dc812cd40624360ca60cf5be5c93971 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 22 Mar 2022 18:08:34 +0300 Subject: footer: allow LICENSE as well as LICENSE.txt --- _includes/common/footer.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '_includes/common') diff --git a/_includes/common/footer.html b/_includes/common/footer.html index e8fd04b..5707dee 100644 --- a/_includes/common/footer.html +++ b/_includes/common/footer.html @@ -11,7 +11,8 @@ {% capture license_file %}{{ '/' | relative_url }}{{ site.settings.project.license_file }}{% endcapture %} {% else %} {% for file in site.static_files %} - {% if file.path == '/LICENSE.txt' %} + {% assign path = file.path | downcase %} + {% if path == 'license' or path == 'license.txt' %} {% assign license_file = file.path | relative_url %} {% endif %} {% endfor %} -- cgit v1.2.3