Made promotion dynamic

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-12-25 21:53:31 +01:00
parent 23b727204f
commit 7245603d59
2 changed files with 12 additions and 6 deletions

4
_data/promotion.yml Normal file
View File

@ -0,0 +1,4 @@
show: true
title: Uberspace
link: https://uberspace.de
image: /assets/images/uberspace-badge-white.png

View File

@ -11,9 +11,11 @@
{% endfor %} {% endfor %}
</ul> </ul>
</nav> </nav>
<a href="https://uberspace.de"> {% if site.data.promotion.show %}
<img src="{% link /assets/images/uberspace-badge-white.png %}" alt="Uberspace promotional image" /> <a href="{{ site.data.promotion.link }}">
<img src="{{ site.data.promotion.image }}" alt="{{ site.data.promotion.title }} promotional image" />
</a> </a>
{% endif %}
</div> </div>
<div class="col-sm-8"> <div class="col-sm-8">
<ul class="list-unstyled"> <ul class="list-unstyled">
@ -31,13 +33,13 @@
</ul> </ul>
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"> <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
<img alt="Creative Commons License" style="border-width:0" <img alt="Creative Commons License" style="border-width:0"
src="/assets/images/cc-by-sa40.png"/> src="{% link /assets/images/cc-by-sa40.png %}"/>
</a><br/> </a><br/>
<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">2martens dot de</span> by <span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">{{ site.title }}</span> by
<a xmlns:cc="http://creativecommons.org/ns" href="https://2martens.de" <a xmlns:cc="http://creativecommons.org/ns" href="{{ site.url }}"
property="cc:attributionName" property="cc:attributionName"
rel="cc:attributionURL"> rel="cc:attributionURL">
Jim Martens {{ site.data.author.name }}
</a> is licensed under a </a> is licensed under a
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"> <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
Creative Commons Attribution-ShareAlike 4.0 International License Creative Commons Attribution-ShareAlike 4.0 International License