From 1c4ffc91d1aa2fe08edcc549638efc4fef2c6ce0 Mon Sep 17 00:00:00 2001
From: Egor Tensin <Egor.Tensin@gmail.com>
Date: Tue, 22 Mar 2022 18:10:22 +0300
Subject: footer: shorter text, get rid of stupid CSS

WTF was this "display: table;" stuff for? I don't really know.
---
 _includes/common/footer.html | 25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

(limited to '_includes')

diff --git a/_includes/common/footer.html b/_includes/common/footer.html
index 5707dee..12ceabe 100644
--- a/_includes/common/footer.html
+++ b/_includes/common/footer.html
@@ -3,10 +3,9 @@
       <div class="footer-wrapper-collapse">
         <footer class="navbar-default">
           <div class="container">
-            <div style="display: table; width: 100%;" class="small">
-              <div style="display: table-row;">
-                <div style="display: table-cell;">
-                  <div class="text-center text-muted">
+            <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 %}
@@ -30,17 +29,17 @@
                       {% endunless %}
                     {% endif %}
                     {% if license %}
-                      This project is licensed under the <a href="{{ license_file }}">{{ license }}</a>.
+                      {% capture license_text %}License: <a href="{{ license_file }}">{{ license }}</a>{% endcapture %}
                     {% elsif license_file %}
-                      This project is licensed under <a href="{{ license_file }}">this license</a>.
+                      {% capture license_text %}License: <a href="{{ license_file }}">click here</a>{% endcapture %}
                     {% endif %}
-                  </div>
-                </div>
-              </div>
-              <div style="display: table-row;">
-                <div style="display: table-cell;">
-                  <div class="text-center text-muted">This page was generated on {{ site.time | date: '%-d %B %Y' }}.</div>
-                </div>
+
+{% capture sep %}<span style="padding: 0 1em;">|</span>{% endcapture %}
+{% capture timestamp_text %}Last update: {{ site.time | date: '%-d %B %Y' }}{% endcapture %}
+<div class="small text-muted">
+  {% if license_text %}{{ license_text }}{{ sep }}{% endif %}{{ timestamp_text }}
+</div>
+
               </div>
             </div>
           </div>
-- 
cgit v1.2.3