nicojensen.de/_includes/note.html

13 lines
832 B
HTML
Raw Normal View History

2024-09-16 02:25:54 +02:00
{% if include.type == "note" or include.type == "info" or include.type == "danger" or include.type == "warning" %}
<div class="alert alert-{{ include.type }}">
{% if include.type == "note" %}<span class="material-icons alert-note-icon">info</span><b>Info:&nbsp;</b>
{% elsif include.type == "info" %}<span class="material-icons alert-note-icon">check_box</span><b>Tip:&nbsp;</b>
{% elsif include.type == "danger" %}<span class="material-icons alert-note-icon">warning</span><b>Warnung:&nbsp;</b>
{% elsif include.type == "warning" %}<span class="material-icons alert-note-icon">error</span><b>Wichtig:&nbsp;</b>
{% endif %}
{{ include.content }}
</div>
{% else %}
<div class="alert alert-info"><span class="material-icons alert-note-icon">info</span><b>Info:&nbsp;</b>{{ include.content }}</div>
{% endif %}