Added dynamic notification at top of site
* closes #4 Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
5
_data/notification.yml
Normal file
5
_data/notification.yml
Normal 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>.
|
||||||
@ -61,9 +61,10 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
{% if site.data.notification.show %}
|
||||||
<div class="container my-3">
|
<div class="container my-3">
|
||||||
{% comment %}notification area {% endcomment %}
|
<div class="alert alert-{{ site.data.notification.type }}" role="alert">
|
||||||
<div class="alert alert-primary" role="alert">
|
{{ site.data.notification.text }}
|
||||||
This is a primary alert—check it out!
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user