Dynamic footer
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
ebceb1c3de
commit
d11e3a98d4
8
_data/footer.yml
Normal file
8
_data/footer.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
- name: "Contact"
|
||||||
|
path: "mailto:info@valentineus.link"
|
||||||
|
|
||||||
|
- name: "Subscription"
|
||||||
|
path: "/atom.xml"
|
||||||
|
|
||||||
|
- name: "Site Map"
|
||||||
|
path: "/sitemap.xml"
|
@ -1,9 +1,13 @@
|
|||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<small>
|
<small>
|
||||||
<a href="mailto:{{ site.author.email | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}">Contact</a>
|
{% for link in site.data.footer %}
|
||||||
<span>|</span>
|
<a href="{{ link.path | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape }}">
|
||||||
<a href="{{ site.rss | relative_url | uri_escape }}">Subscription</a>
|
{{ link.name | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
|
||||||
<span>|</span>
|
</a>
|
||||||
<a href="{{ '/sitemap.xml' | relative_url | uri_escape }}">Site Map</a>
|
<!-- Separation -->
|
||||||
|
{% unless forloop.last %}
|
||||||
|
<span>|</span>
|
||||||
|
{% endunless %}
|
||||||
|
{% endfor %}
|
||||||
</small>
|
</small>
|
||||||
</footer>
|
</footer>
|
||||||
|
Loading…
Reference in New Issue
Block a user