From d11e3a98d4ff39bbce8a9842c93356fac3d8f0b2 Mon Sep 17 00:00:00 2001
From: Valentin Popov <info@valentineus.link>
Date: Tue, 24 Apr 2018 20:13:00 +0400
Subject: Dynamic footer

Signed-off-by: Valentin Popov <info@valentineus.link>
---
 _includes/footer.html | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

(limited to '_includes/footer.html')

diff --git a/_includes/footer.html b/_includes/footer.html
index 52da9d2..b6af6e0 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,9 +1,13 @@
 <footer class="footer">
   <small>
-    <a href="mailto:{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}">Contact</a>
-    <span>|</span>
-    <a href="{{ site.rss | relative_url | uri_escape }}">Subscription</a>
-    <span>|</span>
-    <a href="{{ '/sitemap.xml' | relative_url | uri_escape }}">Site Map</a>
+    {% for link in site.data.footer %}
+      <a href="{{ link.path | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
+        {{ link.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
+      </a>
+      <!-- Separation -->
+      {% unless forloop.last %}
+        <span>|</span>
+      {% endunless %}
+    {% endfor %}
   </small>
 </footer>
-- 
cgit v1.2.3