aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_includes
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-18 10:52:55 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-18 10:52:55 +0200
commit236fc17283b4b58fb73314790d85d80c72e68e70 (patch)
tree86c374160cedde114e338f796019d53ed1236612 /_includes
parentposts: date always beneath the header on my phone (diff)
downloadjekyll-theme-236fc17283b4b58fb73314790d85d80c72e68e70.tar.gz
jekyll-theme-236fc17283b4b58fb73314790d85d80c72e68e70.zip
footer: revert the crazy CSS hack
Diffstat (limited to '_includes')
-rw-r--r--_includes/jekyll-theme/footer.html17
1 files changed, 14 insertions, 3 deletions
diff --git a/_includes/jekyll-theme/footer.html b/_includes/jekyll-theme/footer.html
index 00a13cc..9c13534 100644
--- a/_includes/jekyll-theme/footer.html
+++ b/_includes/jekyll-theme/footer.html
@@ -42,10 +42,21 @@
{% assign footer_items = footer_items | push: timestamp_text %}
{% assign footer_items = footer_items | push: theme_text %}
+{% capture sep %}<span class="footer-item-sep">|</span>{% endcapture %}
<div class="small text-muted footer-items">
- {% for item in footer_items %}
- <div class="footer-item">{{ item }}</div>
- {% endfor %}
+ {%- comment -%}
+ Make sure to collapse the Liquid whitespace here.
+ If you replace the <div>s with <span>s and don't collapse whitespace,
+ extra spaces will be inserted between elements.
+ {%- endcomment -%}
+ {%- for item in (1..footer_items.size) -%}
+ {%- assign idx = item | minus: 1 -%}
+ {%- if item == 1 -%}
+ <div class="footer-item">{{ footer_items[idx] }}</div>
+ {%- else -%}
+ <div class="footer-item">{{ sep }}{{ footer_items[idx] }}</div>
+ {%- endif -%}
+ {%- endfor -%}
</div>
</div>