aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-22 18:11:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-22 18:11:24 +0300
commit8b49ff4327b85e674f16660277a2cf5748b6025f (patch)
treeed526be5257de5f1eeb4351eb4df8d32e59dda26 /_includes
parentfooter: shorter text, get rid of stupid CSS (diff)
downloadjekyll-theme-8b49ff4327b85e674f16660277a2cf5748b6025f.tar.gz
jekyll-theme-8b49ff4327b85e674f16660277a2cf5748b6025f.zip
footer: clean up whitespace in the include
Diffstat (limited to '_includes')
-rw-r--r--_includes/common/footer.html54
1 files changed, 27 insertions, 27 deletions
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 @@
<div class="row">
<div class="col-xs-12 text-center">
- {% 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: <a href="{{ license_file }}">{{ license }}</a>{% endcapture %}
- {% elsif license_file %}
- {% capture license_text %}License: <a href="{{ license_file }}">click here</a>{% 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: <a href="{{ license_file }}">{{ license }}</a>{% endcapture %}
+{% elsif license_file %}
+ {% capture license_text %}License: <a href="{{ license_file }}">click here</a>{% endcapture %}
+{% endif %}
{% capture sep %}<span style="padding: 0 1em;">|</span>{% endcapture %}
{% capture timestamp_text %}Last update: {{ site.time | date: '%-d %B %Y' }}{% endcapture %}