Added dynamic notification at top of site

* closes #4

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2017-12-24 22:56:54 +01:00
parent b441310087
commit 9bd4ead39e
2 changed files with 9 additions and 3 deletions

View File

@ -61,9 +61,10 @@
{% endfor %}
</header>
{% if site.data.notification.show %}
<div class="container my-3">
{% comment %}notification area {% endcomment %}
<div class="alert alert-primary" role="alert">
This is a primary alert—check it out!
<div class="alert alert-{{ site.data.notification.type }}" role="alert">
{{ site.data.notification.text }}
</div>
</div>
{% endif %}