Add custom themes, THEME setting, basic "yolocolo" theme #7
No reviewers
Labels
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: 3wordchant/capsul-flask#7
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "yc-templates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Specify
THEME=yourtheme
, add some HTML files incapsulflask/theme/yourtheme
👌We probably want to reduce copypasta in the current
yolocolo
theme by using template inheritance, at some point.y e s
The capsulflask/static/icon.png and favicon should probably not be modified, the custom theme HTML can simply specify a different image for those right?
@ -157,0 +164,4 @@
'capsulflask/templates']),
])
app.jinja_loader = my_loader
This is cool, I had no idea one could do this.
I learned it today on the internet 😁
How do you wanna do this moving forward, you keep the yolocolo theme in the main repo? Or do you wanna make a separate repo for the yolocolo theme and then update/deploy it separately?
Yep, reverted, that was a mistake! 😳
No preference, you got any leanings?
Just keep it in the main repo, it will make your life easier and provide an example of how to use the theme feature. J3s ok with this too.
LGTM