diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-22 18:10:22 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-03-22 18:10:27 +0300 |
commit | 1c4ffc91d1aa2fe08edcc549638efc4fef2c6ce0 (patch) | |
tree | 2659f6030104748ba6f642630ba8c4c3e77419fd | |
parent | footer: allow LICENSE as well as LICENSE.txt (diff) | |
download | jekyll-theme-1c4ffc91d1aa2fe08edcc549638efc4fef2c6ce0.tar.gz jekyll-theme-1c4ffc91d1aa2fe08edcc549638efc4fef2c6ce0.zip |
footer: shorter text, get rid of stupid CSS
WTF was this "display: table;" stuff for? I don't really know.
Diffstat (limited to '')
-rw-r--r-- | _includes/common/footer.html | 25 |
1 files changed, 12 insertions, 13 deletions
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> |