Commit Graph

12 Commits (20140f6f316db0d7bb1c1bd46d54d51ede9ad10f)

Author SHA1 Message Date
Dominik Madarász 9a50d7fcda update theme 2023-01-12 16:22:41 +00:00
Dominik Madarász 7b3e61ef50 untrack _theme.scss 2023-01-12 16:21:43 +00:00
Dominik Madarász 6ec069a2f6 stuff 2023-01-11 22:33:50 +00:00
Dominik Madarász 0b12528fc2 my setup 2023-01-11 19:22:28 +00:00
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