{# Base template for the CKAN theming system. This template defines the overall structure of the HTML document, including blocks for the head, body, styles, scripts, and main content area. -#} {%- block document -%} {#- Allows the DOCTYPE to be set on a page by page basis -#} {%- block doctype %}{% endblock %} {#- Document head block - contains meta tags, title, links to stylesheets, etc. -#} {%- block document_head %} {%- block meta %} {%- block meta_csrf %} {% endblock meta_csrf %} {%- block meta_generator %}{% endblock %} {%- block meta_viewport %}{% endblock %} {%- endblock meta -%} {#- Title block - contains the title of the page -#} {%- block title %} {%- block subtitle %}{% endblock %} {{- ui.subtitle_item(g.site_title, initial=true) }} {%- endblock title -%} {#- Links block - contains links to external stylesheets, favicons, etc. -#} {%- block links %} {%- endblock %} {#- Styles block - contains links to stylesheets -#} {%- block styles %} {%- block styles_theming -%} {%- asset "theming/bare/styles" %} {%- endblock %} {%- endblock -%} {{- h.render_assets('style') -}} {#- Custom styles block - contains any custom CSS defined in site configuration -#} {%- block custom_styles %} {%- if g.site_custom_css -%} {%- endif %} {%- endblock %} {#- Additional head extras block - for any extra head content -#} {%- block head_extras %}{% endblock %} {%- endblock document_head %} {#- Document body block - contains the main content of the page -#} {% block document_body %} {#- Page block - main content area -#} {%- block page %}{% endblock %} {#- Scripts block - contains links to JavaScript files -#} {%- block scripts %} {#- Base scripts block - contains core JavaScript files -#} {%- block scripts_base -%} {%- asset "base/main" -%} {%- endblock %} {#- Theming scripts block - contains theming related JavaScript files -#} {%- block scripts_theming -%} {%- asset "theming/bare/scripts" -%} {%- endblock %} {% endblock %} {#- render all assets included in scripts block and everywhere else -#} {#- make sure there are no calls to `asset` tag after this point -#} {{ h.render_assets('style') }} {{ h.render_assets('script') }} {#- Body extras block - for any extra body content -#} {%- block body_extras %}{% endblock %} {%- endblock document_body %} {%- endblock document %}