aboutsummaryrefslogtreecommitdiff
path: root/_includes/footer.html
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-04-24 19:13:00 +0300
committerValentin Popov <info@valentineus.link>2018-04-24 19:13:00 +0300
commitd11e3a98d4ff39bbce8a9842c93356fac3d8f0b2 (patch)
treefa05aac6d444ad5d0080f52a9c043b6982631124 /_includes/footer.html
parentebceb1c3dec8478dbbaa29c7b22d509354c8646d (diff)
downloadpopov.link-d11e3a98d4ff39bbce8a9842c93356fac3d8f0b2.tar.xz
popov.link-d11e3a98d4ff39bbce8a9842c93356fac3d8f0b2.zip
Dynamic footer
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes/footer.html')
-rw-r--r--_includes/footer.html14
1 files changed, 9 insertions, 5 deletions
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>