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

5
_data/notification.yml Normal file
View File

@ -0,0 +1,5 @@
show: false
type: success
text: >
Welcome on my relaunched website. Please see info on
<a class="alert-link" href="/about">About page</a>.

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 %}