This website requires JavaScript.
Explore
Help
Sign In
zaklaus
/
microblog
Watch
1
Star
0
Fork
You've already forked microblog
0
Code
Issues
Pull Requests
Releases
Activity
436d5ccf1b
microblog
/
data
/
templates
/
app
1 line
20 B
Plaintext
Raw
Normal View
History
Unescape
Escape
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-05 10:04:21 +00:00
../../app/templates/