microblog.pub/docs
Kevin Wallace 48740ea8cb Allow templates to be overridden in data/templates/
I'd like to customize my instance's theme beyond what's possible with
_theme.scss.  This patch would allow me to do that, and keep my changes
self-contained in data/ without maintaining a local patchset over
app/templates/.

For utils.html, I've also added scoped blocks around the body of every
macro.  This allows the macros to be overridden individually in
data/templates/utils.html, without copying the whole file.  For example,
to only override the display of a specific actor's name/icon:

    {% extends "app/utils.html" %}
    {% block display_actor %}
    {% if actor.ap_id == "https://me.example.com" %}
    <!-- custom actor display -->
    {% else %}
    {{ super() }}
    {% endif %}
    {% endblock %}
2022-11-07 18:46:21 +01:00
..
static Generate a basic favicon dynamically 2022-07-22 08:46:14 +02:00
templates Complete the switch to mistletoe 2022-10-19 20:46:01 +02:00
developer_guide.md knoweldge -> knowledge 2022-09-16 08:58:22 +02:00
install.md Tweak/fix install steps in the docs 2022-10-18 19:26:04 +02:00
user_guide.md Allow templates to be overridden in data/templates/ 2022-11-07 18:46:21 +01:00