From d218a0fcdd23b399e6ef12b69175ed315e006d5d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 15 Apr 2022 17:11:13 +0300 Subject: footer: sort out item separation --- _includes/jekyll-theme/footer.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to '_includes') diff --git a/_includes/jekyll-theme/footer.html b/_includes/jekyll-theme/footer.html index 9331784..35887d0 100644 --- a/_includes/jekyll-theme/footer.html +++ b/_includes/jekyll-theme/footer.html @@ -32,10 +32,18 @@ {% capture license_text %}License: click here{% endcapture %} {% endif %} -{% capture sep %}|{% endcapture %} {% capture timestamp_text %}Last update: {{ site.time | date: '%-d %B %Y' }}{% endcapture %} -
- {% if license_text %}{{ license_text }}{{ sep }}{% endif %}{{ timestamp_text }} + +{% assign footer_items = '' | split: '' %} +{% if license_text %} + {% assign footer_items = footer_items | push: license_text %} +{% endif %} +{% assign footer_items = footer_items | push: timestamp_text %} + +
-- cgit v1.2.3