mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-14 02:34:27 +00:00
48740ea8cb
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 %} |
||
---|---|---|
.. | ||
scss | ||
static | ||
templates | ||
utils | ||
__init__.py | ||
activitypub.py | ||
actor.py | ||
admin.py | ||
ap_object.py | ||
boxes.py | ||
config.py | ||
customization.py | ||
database.py | ||
httpsig.py | ||
incoming_activities.py | ||
indieauth.py | ||
key.py | ||
ldsig.py | ||
lookup.py | ||
main.py | ||
media.py | ||
micropub.py | ||
models.py | ||
outgoing_activities.py | ||
prune.py | ||
source.py | ||
templates.py | ||
uploads.py | ||
webfinger.py | ||
webmentions.py |