microblog.pub/app/templates
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
..
admin_direct_messages.html
admin_inbox.html
admin_new.html Fix URL generation when not at domain root 2022-11-04 19:22:30 +01:00
admin_outbox.html
admin_profile.html
admin_stream.html
articles.html
custom_page.html
error.html
followers.html
following.html
header.html Fix URL generation when not at domain root 2022-11-04 19:22:30 +01:00
index.html
indieauth_flow.html
layout.html Fix URL generation when not at domain root 2022-11-04 19:22:30 +01:00
login.html Minor tweaks about non-root handling 2022-11-04 19:28:21 +01:00
lookup.html
notifications.html
object.html
remote_follow.html
remote_interact.html
utils.html Allow templates to be overridden in data/templates/ 2022-11-07 18:46:21 +01:00