Theme extension

Extending a theme

DeepThought published on
2 min, 205 words

Categories: Documentation

DeepThought theme can be extended with usual Zola extension mechanisms.

Replacing a template

As any theme, all DeepThought templates can be replaced to override a whole template.

Blocks to extend

If you don't want to replace a whole DeepThought template, but override parts of it, you can extend the template and redefine some specific blocks.

Here is a WIP list of blocks in DeepThought templates to override:

Template location1BlockDescription
base.htmluser_custom_stylesheetCustom stylesheet (css or saas) to fine-tune DeepThought styling
base.htmltitleCustomize default page's titles
base.htmlanalyticsProvide your own analytics script. Google Analytics by default
base.htmlheaderCustomize page's header
base.htmlcontentCustomize page's content
base.htmlsearchProvide your own search box partial template
base.htmlpaginationOverride default pagination
base.htmlcommentProvide your own pagination partial template
base.htmlother_lang_search_jsProvide custom search behavior, eg. to use languages others than English
base.htmluser_custom_jsProvide any custom JS scripts at the end of the body of the page

1

Relative to the templates directory