diff options
| author | Jieiku | 2023-05-22 23:09:27 -0700 |
|---|---|---|
| committer | Jieiku | 2023-05-22 23:09:27 -0700 |
| commit | 9543caf10ffdbcc2cea462a8bcb64cee29d406d5 (patch) | |
| tree | e82f984f8b5649336016d62607dcf2b5292f0ee1 /templates/shortcodes/note.html | |
| parent | d9fb3248650404ad6d078eba39b8b91381b1ebed (diff) | |
| download | abridge-9543caf10ffdbcc2cea462a8bcb64cee29d406d5.tar.gz abridge-9543caf10ffdbcc2cea462a8bcb64cee29d406d5.tar.bz2 abridge-9543caf10ffdbcc2cea462a8bcb64cee29d406d5.zip | |
Syntax Highlighting Variables
Diffstat (limited to 'templates/shortcodes/note.html')
| -rw-r--r-- | templates/shortcodes/note.html | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/templates/shortcodes/note.html b/templates/shortcodes/note.html deleted file mode 100644 index b2420e9..0000000 --- a/templates/shortcodes/note.html +++ /dev/null @@ -1,30 +0,0 @@ -{# note shortcode with icon and border - - type: ok / info / warning / error / neutral / other - display: block / icon / both - size: small / medium / large - markdown: true / false - - example: - - {% note(type="ok", display="block", size="small" markdown=true) %} - *Sample* "ok" note. With display "block" - And **markdown** content. - {% end %} -#} - -{# define defaults #} -{% if not type %}{% set type="neutral" %}{% endif %} -{% if not display %}{% set display="block" %}{% endif %} -{% if not size %}{% set size="small" %}{% endif %} -{% if not markdown %}{% set markdown=true %}{% endif %} - -<div class="note -{%- if display == 'icon' %} note-icon note-icon-{{size}} note-icon-{{type}} -{%- elif display == 'block' %} note-block note-{{type}} -{%- elif display == 'both' %} note-icon note-icon-{{size}} note-icon-{{type}} note-block note-{{type}} -{%- endif %}"> -{% if markdown %}{{ body | markdown | safe }} -{% else %}{{ body | safe }} -{% endif %} -</div> |
