_includes/notification.html in jekyll-theme-opentoolbox-1.1.0 vs _includes/notification.html in jekyll-theme-opentoolbox-2.0.0
- old
+ new
@@ -1,17 +1,18 @@
-<div x-data="{visible: true}" markdown="0">
- <div class="notification {{ include.status | default: 'is-warning' }}" x-show.transition.duration.300ms="visible">
- {% if include.dismissable %}
- <button class="delete" x-on:click="visible = false"></button>
- {% endif %}
- <article class="media">
- {% unless include.icon %}
- <div class="media-left">
- <span class="icon"><i class="{{ include.icon | default: 'fas fa-exclamation-circle' }} fa-lg"></i></span>
- </div>
- {% endunless %}
- <div class="media-content">
- <div class="content">{{ include.message | markdownify }}</div>
- </div>
- </article>
- </div>
+{% assign icon = include.icon | default: 'exclamation-circle' %}
+<div x-data="{visible: true}" markdown="0">
+ <div class="notification {{ include.status | default: 'is-warning' }}" x-show.transition.duration.300ms="visible">
+ {% if include.dismissable %}
+ <button class="delete" x-on:click="visible = false"></button>
+ {% endif %}
+ <article class="media">
+ {% unless include.icon %}
+ <div class="media-left">
+ {% include icon.html icon=icon %}
+ </div>
+ {% endunless %}
+ <div class="media-content">
+ <div class="content">{{ include.message | markdownify }}</div>
+ </div>
+ </article>
+ </div>
</div>
\ No newline at end of file