Logo
Explore Help
Sign In
b1-66er/microblog.pub
2
0
Fork 0
You've already forked microblog.pub
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
22410862f3d2cab24a5888f0c7245d63f107c3d7
microblog.pub/data/templates/app

1 line
20 B
Plaintext
Raw Normal View History

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 03:04:21 -07:00
../../app/templates/
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 50ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API