change footer from text to icon based
This commit is contained in:
parent
5a87a80320
commit
cf2e0936c9
2 changed files with 41 additions and 22 deletions
|
@ -2,26 +2,37 @@
|
|||
<div class="wrapper">
|
||||
{% if site.data.footer-links %}
|
||||
<div id="footerlinks">
|
||||
{% assign footerlinks = site.data.footer-links %} |
|
||||
{% for footerlink in footerlinks %}
|
||||
{% assign fkey = footerlink | first %}
|
||||
<a href="{{footerlinks[fkey].href}}" title="{{footerlinks[fkey].title}}">{{footerlinks[fkey].title}}</a> |
|
||||
{% endfor %}
|
||||
{% assign footerlinks = site.data.footer-links %} | {% for
|
||||
footerlink in footerlinks %} {% assign fkey = footerlink | first %}
|
||||
<a href="{{footerlinks[fkey].href}}" title="{{footerlinks[fkey].title}}"
|
||||
>{{footerlinks[fkey].title}}</a
|
||||
> | {% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if site.data.social-media %}
|
||||
{% endif %} {% if site.data.social-media %}
|
||||
<div id="social-media">
|
||||
{% assign sm = site.data.social-media %} |
|
||||
{% for entry in sm%}
|
||||
{% assign key = entry | first %}
|
||||
{% if sm[key].footer %}
|
||||
{% if sm[key].id %}
|
||||
<a href="{{sm[key].href}}{{sm[key].id}}" title="{{sm[key].title}}" target="_blank" rel="noopener {{sm[key].rel}}">{{sm[key].link}}</a> |
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% assign sm = site.data.social-media %} {% for entry in sm%} {% assign
|
||||
key = entry | first %} {% if sm[key].footer %} {% if sm[key].id %}
|
||||
<a
|
||||
href="{{sm[key].href}}{{sm[key].id}}"
|
||||
title="{{sm[key].title}}"
|
||||
target="_blank"
|
||||
rel="noopener {{sm[key].rel}}"
|
||||
><img
|
||||
src="/assets/images/sm_logos/{{sm[key].logo]}}"
|
||||
height="32px"
|
||||
alt="{{sm[key].link}}"
|
||||
/></a>
|
||||
{% endif %} {% endif %} {% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
<p>Handmade with <span class="entypo red">♥</span> in <a href="https://www.stadt-stade.info/" target="_blank" rel="noopener noreferrer">Hansestadt Stade</a><br />© {{'now' | date: "%Y"}} Nico Jensen</p>
|
||||
<p>
|
||||
Handmade with <span class="entypo red">♥</span> in
|
||||
<a
|
||||
href="https://www.stadt-stade.info/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>Hansestadt Stade</a
|
||||
><br />© {{'now' | date: "%Y"}} Nico Jensen
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
@ -267,3 +267,11 @@ footer.site-footer {
|
|||
.ratingSet {
|
||||
color: rgba(255, 144, 163, 1);
|
||||
}
|
||||
|
||||
div#social-media {
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
div#social-media a {
|
||||
margin: 0 6px;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue