1
0
Fork 0
This repository has been archived on 2021-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
dennogumi.org-archive/_includes/alert

33 lines
980 B
Text

{% comment %}
*
* This include lets you easily display an alert.
* To use the include no `.html` ending is necessary.
* You can use five different kinds of alerts:
*
* - warning
* - info
* - success
* - alert
* - text
*
* You can even use <html>-tags inside the alert. Beware:
* Use " and ' properly.
*
* Example: {% include alert info='Show an info alert with outstanding information' %}
*
{% endcomment %}
{% if include.warning %}
<div class="alert-box warning radius">{{ include.warning }}</div>
{% elsif include.info %}
<div class="alert-box info radius">{{ include.info }}</div>
{% elsif include.success %}
<div class="alert-box success radius">{{ include.success }}</div>
{% elsif include.alert %}
<div class="alert-box alert radius">{{ include.alert }}</div>
{% elsif include.text %}
<div class="alert-box text radius">{{ include.text }}</div>
{% elsif include.terminal %}
<div class="alert-box terminal radius">{{ include.terminal }}</div>
{% endif %}