summary refs log tree commit diff stats
path: root/src/themes/serene/templates/macros/prose.html
blob: bd9a894975ef1c01f9afa4c8fc0f49bb3f762ae3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 %}