Initial commit
This commit is contained in:
17
_includes/feature/alert.html
Normal file
17
_includes/feature/alert.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{% comment %}
|
||||
|
||||
Bootstrap Alert, https://getbootstrap.com/docs/5.1/components/alerts/
|
||||
|
||||
E.G. --> {% include feature/alert.html text="example text" color="warning" align="center" %}
|
||||
|
||||
Options:
|
||||
- "text" = text for alert, can use Markdown.
|
||||
- "color" = a Bootstrap color (primary, secondary, success, danger, warning, info, light, dark)
|
||||
- "align" = text alignment (center, right, left)
|
||||
|
||||
{%- endcomment -%}
|
||||
<div class="narrow-content">
|
||||
<div class="alert alert-{{ include.color | default: 'primary' }} feature-alert {% if include.align %}text-{{ include.align | default: 'center' }}{% endif %}" role="alert">
|
||||
{{ include.text | markdownify }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user