From 8b49ff4327b85e674f16660277a2cf5748b6025f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 22 Mar 2022 18:11:24 +0300 Subject: footer: clean up whitespace in the include --- _includes/common/footer.html | 54 ++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to '_includes/common') diff --git a/_includes/common/footer.html b/_includes/common/footer.html index 12ceabe..c337b3b 100644 --- a/_includes/common/footer.html +++ b/_includes/common/footer.html @@ -6,33 +6,33 @@
- {% if site.settings.project.license_file %} - {% capture license_file %}{{ '/' | relative_url }}{{ site.settings.project.license_file }}{% endcapture %} - {% else %} - {% for file in site.static_files %} - {% assign path = file.path | downcase %} - {% if path == 'license' or path == 'license.txt' %} - {% assign license_file = file.path | relative_url %} - {% endif %} - {% endfor %} - {% endif %} - {% if site.settings.project.license %} - {% assign license = site.settings.project.license %} - {% unless license_file %} - {% capture license_file %}https://spdx.org/licenses/{{ license }}.html{% endcapture %} - {% capture license %}{{ license }} License{% endcapture %} - {% endunless %} - {% elsif site.github.license %} - {% assign license = site.github.license.name %} - {% unless license_file %} - {% capture license_file %}https://spdx.org/licenses/{{ site.github.license.spdx_id }}.html{% endcapture %} - {% endunless %} - {% endif %} - {% if license %} - {% capture license_text %}License: {{ license }}{% endcapture %} - {% elsif license_file %} - {% capture license_text %}License: click here{% endcapture %} - {% endif %} +{% if site.settings.project.license_file %} + {% capture license_file %}{{ '/' | relative_url }}{{ site.settings.project.license_file }}{% endcapture %} +{% else %} + {% for file in site.static_files %} + {% assign path = file.path | downcase %} + {% if path == 'license' or path == 'license.txt' %} + {% assign license_file = file.path | relative_url %} + {% endif %} + {% endfor %} +{% endif %} +{% if site.settings.project.license %} + {% assign license = site.settings.project.license %} + {% unless license_file %} + {% capture license_file %}https://spdx.org/licenses/{{ license }}.html{% endcapture %} + {% capture license %}{{ license }} License{% endcapture %} + {% endunless %} +{% elsif site.github.license %} + {% assign license = site.github.license.name %} + {% unless license_file %} + {% capture license_file %}https://spdx.org/licenses/{{ site.github.license.spdx_id }}.html{% endcapture %} + {% endunless %} +{% endif %} +{% if license %} + {% capture license_text %}License: {{ license }}{% endcapture %} +{% elsif license_file %} + {% capture license_text %}License: click here{% endcapture %} +{% endif %} {% capture sep %}|{% endcapture %} {% capture timestamp_text %}Last update: {{ site.time | date: '%-d %B %Y' }}{% endcapture %} -- cgit v1.2.3