microblog.pub/app
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
..
scss More CSS tweaks for the in reply to section 2022-10-03 20:05:06 +02:00
static Fix the delete button 2022-08-30 19:09:51 +02:00
templates Allow templates to be overridden in data/templates/ 2022-11-07 18:46:21 +01:00
utils First shot at supporting custom handler 2022-11-02 08:51:21 +01:00
__init__.py Initial commit for new v2 2022-06-22 20:11:22 +02:00
activitypub.py More Markdown improvements 2022-10-05 20:05:16 +02:00
actor.py Improved Block support 2022-10-18 21:39:09 +02:00
admin.py Improve Block support 2022-10-23 16:37:32 +02:00
ap_object.py Complete the switch to mistletoe 2022-10-19 20:46:01 +02:00
boxes.py Fix permalink for Questions 2022-11-03 22:38:29 +01:00
config.py Sign media URLs to avoid becoming an open proxy 2022-11-04 19:36:26 +01:00
customization.py First shot at supporting custom handler 2022-11-02 08:51:21 +01:00
database.py Improve debug mode 2022-08-28 11:24:46 +02:00
httpsig.py More actor refresh improvements 2022-10-09 11:36:00 +02:00
incoming_activities.py Bugfixes 2022-09-13 21:02:47 +02:00
indieauth.py Tweak error wording 2022-09-16 18:37:09 +02:00
key.py Fix config wizard 2022-07-04 20:25:27 +02:00
ldsig.py Tweak model for access tokens 2022-07-10 12:06:16 +02:00
lookup.py Improve Announce handling 2022-09-13 07:59:35 +02:00
main.py Sign media URLs to avoid becoming an open proxy 2022-11-04 19:36:26 +01:00
media.py Fix formatting 2022-11-06 16:57:04 +01:00
micropub.py Finish Question/poll support 2022-07-24 12:36:59 +02:00
models.py Add slug support for Article 2022-10-30 17:50:59 +01:00
outgoing_activities.py Improve move support 2022-09-08 20:00:02 +02:00
prune.py Fix inbox processing for deleted actors 2022-08-19 19:36:23 +02:00
source.py Fix tag dedup 2022-10-20 19:39:55 +02:00
templates.py Allow templates to be overridden in data/templates/ 2022-11-07 18:46:21 +01:00
uploads.py Fix GIF upload handling 2022-09-14 08:38:54 +02:00
webfinger.py More work towards support moving/deleting instance 2022-09-01 20:42:20 +02:00
webmentions.py Webmention improvements 2022-07-19 20:38:32 +02:00