Closed stuartmaxwell closed 3 weeks ago
Implement themes.
./templates/djpress/{{ theme_name }}
./templates/djpress/default
DJPRESS_SETTINGS["THEME"] = "{{ theme_name }}"
index.html
./static/djpress/{{ theme_name }}/css/styles.css
Enough details to get started...
Implement themes.
./templates/djpress/{{ theme_name }}
./templates/djpress/default
DJPRESS_SETTINGS["THEME"] = "{{ theme_name }}"
If the configured theme doesn't exist, then fall back to defaultindex.html
fileWould be better to have the theme and static files in one folder, e.g. ~~`./templates/djpress/{{ theme_name }}/static/css`etc.~~Custom static paths? Is this possible? Yes, a custom loader is possible./static/djpress/{{ theme_name }}/css/styles.css
etc. (avoid premature optimisation)Enough details to get started...