Commit Graph

8 Commits (26efd09304e2cf281c438de1709fe22bb4610849)

Author SHA1 Message Date
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
Kevin Wallace 2843155501 Allow actor id to be specified in config
This is useful if the actor won't be at the root of the domain.
2022-11-04 19:22:30 +01:00
Thomas Sileo 2c23f404d9 Add missing SCSS file in data/ 2022-08-06 17:05:27 +02:00
Thomas Sileo 1197f132ce Improve custom emoji support 2022-07-16 07:48:24 +02:00
Thomas Sileo 1f54a6a6ac Switch to aiosqlite 2022-06-29 20:43:17 +02:00
Thomas Sileo f4c70096e2 Try to fix tests 2022-06-28 23:47:51 +02:00
Thomas Sileo ad2f5b32d1 Commit config for tests 2022-06-22 20:55:19 +02:00
Thomas Sileo d528369954 Initial commit for new v2 2022-06-22 20:11:22 +02:00