What is the best way to heavily customized landing page? #5426
-
I have been developing a custom landing page that features a unique design and incorporates custom JavaScript codes to enhance interactivity. The UI is separate from the documentation, but it includes a summary of how to use and install the product. At the bottom of the page, there will be a section featuring code and preview capabilities, allowing users to see changes in real-time. I am wondering about the best way to implement this. Should I extend the base.html file and override its blocks? Or should I create custom patterns, styles, and JavaScript files? Is there an obvious approach that I should take? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I recommend looking at our overrides – the best way is to create a separate template called |
Beta Was this translation helpful? Give feedback.
-
Given my scenario, it seems more reasonable to create a simple landing page that references the URL to the documentation, rather than modifying the main.html file. |
Beta Was this translation helpful? Give feedback.
I recommend looking at our overrides – the best way is to create a separate template called
home.html
and then override blocks selectively. You should never overridebase.html
directly, only extend it, as that will make upgrading challenging.