summaryrefslogtreecommitdiffstats
path: root/src/themes/serene/templates/macros
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-09-11 22:02:29 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-09-11 22:02:29 +0200
commite55841149d9259f26f4d117daba34b5666a52097 (patch)
tree841e8c85615ae3563b6d8a4ea575eb275e0feacd /src/themes/serene/templates/macros
parenttreefmt.nix: Update to newest nixpkgs changes (diff)
downloadb-peetz.de-e55841149d9259f26f4d117daba34b5666a52097.zip
src/themes/serene: Update to newest version
Diffstat (limited to 'src/themes/serene/templates/macros')
-rw-r--r--src/themes/serene/templates/macros/collection.html153
-rw-r--r--src/themes/serene/templates/macros/prose.html32
2 files changed, 0 insertions, 185 deletions
diff --git a/src/themes/serene/templates/macros/collection.html b/src/themes/serene/templates/macros/collection.html
deleted file mode 100644
index 796eae1..0000000
--- a/src/themes/serene/templates/macros/collection.html
+++ /dev/null
@@ -1,153 +0,0 @@
-{% macro card(item) %}
-<blockquote class="collection card{% if item.featured %} featured{% endif %}">
- <div class="meta">
- {% if item.icon %}
- <div class="icon-wrapper">
- <img class="icon no-lightense" src="{{ item.icon }}" alt="icon" width="16" height="16">
- </div>
- {% endif %}
- {% if item.link %}
- <a class="title" href="{{ item.link }}" target="_blank" rel="noreferrer noopener">{{ item.title }}</a>
- {% else %}
- <div class="title">{{ item.title }}</div>
- {% endif %}
- {% if item.date %}
- <div class="date">{{ item.date }}</div>
- {% endif %}
- </div>
- {% if item.subtitle %}
- <div class="subtitle">{{ item.subtitle }}</div>
- {% endif %}
- <div class="content">{{ item.content | trim | markdown | safe }}</div>
- {% if item.tags %}
- <div class="tags">
- {% for tag in item.tags %}
- <div><span>#</span>{{ tag }}</div>
- {% endfor %}
- </div>
- {% endif %}
-</blockquote>
-{% endmacro %}
-
-
-{% macro card_simple(item) %}
-<blockquote class="collection card-simple{% if item.featured %} featured{% endif %}">
- <div class="meta">
- {% if item.icon %}
- <div class="icon-wrapper">
- <img class="icon no-lightense" src="{{ item.icon }}" alt="icon" width="16" height="16">
- </div>
- {% endif %}
- {% if item.link %}
- <a class="title" href="{{ item.link }}" target="_blank" rel="noreferrer noopener">{{ item.title }}</a>
- {% else %}
- <div class="title">{{ item.title }}</div>
- {% endif %}
- <div class="content">{{ item.content | trim | markdown | safe }}</div>
- {% if item.date %}
- <div class="date">{{ item.date }}</div>
- {% endif %}
- </div>
- <div class="content-narrow">{{ item.content | trim | markdown | safe }}</div>
-</blockquote>
-{% endmacro %}
-
-
-{% macro entry(item) %}
-{% if item.link %}
-<a href="{{ item.link }}" target="_blank" rel="noreferrer noopener" class="collection entry">
-{% else %}
-<blockquote class="collection entry">
-{% endif %}
- {% if item.icon %}
- <div class="icon-wrapper">
- <img class="icon no-lightense" src="{{ item.icon }}" alt="icon" width="16" height="16" />
- </div>
- {% endif %}
- {% if item.title or item.subtitle %}
- <div class="text">
- {% if item.title %}
- <div class="title">{{ item.title }}</div>
- {% endif %}
- {% if item.subtitle %}
- <div class="subtitle">{{ item.subtitle }}</div>
- {% endif %}
- </div>
- {% endif %}
-{% if item.link %}
-</a>
-{% else %}
-</blockquote>
-{% endif %}
-{% endmacro %}
-
-
-{% macro box(item) %}
-<div class="collection-box-wrapper">
-{% if item.link %}
-<a href="{{ item.link }}" target="_blank" rel="noreferrer noopener" class="collection box">
-{% else %}
-<blockquote class="collection box">
-{% endif %}
- <div class="text">
- <div class="title">{{ item.title }}</div>
- {% if item.subtitle %}
- <div class="subtitle">{{ item.subtitle }}</div>
- {% endif %}
- </div>
- {% if item.img %}
- <img class="no-lightense{% if item.rotate %} rotate{% endif %}" src="{{ item.img }}" alt="{{ item.title }}" width="48" height="48" />
- {% else %}
- <div class="placehold"></div>
- {% endif %}
-{% if item.link %}
-</a>
-{% else %}
-</blockquote>
-{% endif %}
-</div>
-{% endmacro %}
-
-
-{% macro art(item) %}
-<blockquote class="collection art">
- <div class="img-wrapper">
- <img src="{{ item.img }}" alt="{{ item.title }}" height="175">
- </div>
- <div class="text">
- {% if item.link %}
- <a class="title" href="{{ item.link }}" target="_blank" rel="noreferrer noopener" >{{ item.title }}</a>
- {% else %}
- <div class="title">{{ item.title }}</div>
- {% endif %}
- {% if item.subtitle %}
- <div class="subtitle">{{ item.subtitle }}</div>
- {% endif %}
- {% if item.content %}
- <div class="content">{{ item.content }}</div>
- {% endif %}
- {% if item.footer %}
- <div class="footer">{{ item.footer }}</div>
- {% endif %}
- </div>
-</blockquote>
-{% endmacro %}
-
-
-{% macro art_simple(item) %}
-<blockquote class="collection art-simple">
- <div class="img-wrapper">
- <img src="{{ item.img }}" alt="{{ item.title }}" height="175">
- </div>
- <div class="text">
- {% if item.link %}
- <a class="title" href="{{ item.link }}" target="_blank" rel="noreferrer noopener" >{{ item.title }}</a>
- {% else %}
- <div class="title">{{ item.title }}</div>
- {% endif %}
- {% if item.subtitle %}
- <div class="subtitle">{{ item.subtitle }}</div>
- {% endif %}
- </div>
-</blockquote>
-{% endmacro %}
diff --git a/src/themes/serene/templates/macros/prose.html b/src/themes/serene/templates/macros/prose.html
deleted file mode 100644
index bd9a894..0000000
--- a/src/themes/serene/templates/macros/prose.html
+++ /dev/null
@@ -1,32 +0,0 @@
-{% 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 %}