summaryrefslogtreecommitdiffstats
path: root/src/themes/serene/templates/macros/prose.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/themes/serene/templates/macros/prose.html')
-rw-r--r--src/themes/serene/templates/macros/prose.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/themes/serene/templates/macros/prose.html b/src/themes/serene/templates/macros/prose.html
new file mode 100644
index 0000000..bd9a894
--- /dev/null
+++ b/src/themes/serene/templates/macros/prose.html
@@ -0,0 +1,32 @@
+{% macro back_link(path) %}
+<header>
+ <nav>
+ <a href="{{ path }}">← {{ config.extra.back_link_text }}</a>
+ </nav>
+</header>
+{% endmacro %}
+
+
+{% macro callout(name) %}
+<blockquote class="callout {{ name }} {% if title %}has-title{% else %}no-title{% endif %}">
+ {% set icon = load_data(path="icon/" ~ name ~ ".svg") %}
+ {% if title %}
+ <p class="title">
+ <span class="icon">
+ {{ icon | safe }}
+ </span>
+ <strong>{{ title }}</strong>
+ </p>
+ <div class="content">
+ {{ body | markdown | safe }}
+ </div>
+ {% else %}
+ <div class="icon">
+ {{ icon | safe }}
+ </div>
+ <div class="content">
+ {{ body | markdown | safe }}
+ </div>
+ {% endif %}
+</blockquote>
+{% endmacro %}