Skip to content

Can I import the code I want to import by customizing some HTML #7063

Answered by alexvoss
W1ndys asked this question in Q&A
Discussion options

You must be logged in to vote

whether the naming of the html template under overrides is strictly restricted

I refer you to the documentation. It does suggest that you can add more files but, of course, these would need to be included from your versions of the templates and partials to have an effect.

Re adding custom HTML, remember that it needs to be inside the html tag, which is in base.html. So, just adding more HTML code to main.html is not going to work unless you are overriding a block. If you want to learn how all of this works, have a look at the Jinja documentation.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@alexvoss
Comment options

alexvoss Apr 20, 2024
Collaborator Sponsor

@W1ndys
Comment options

@alexvoss
Comment options

alexvoss Apr 20, 2024
Collaborator Sponsor

Answer selected by W1ndys
@W1ndys
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants