From 7fdf6891cf0ffb8b4de03e2c3bf7a3d2ca79d002 Mon Sep 17 00:00:00 2001 From: tkallady <43975406+tkallady@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:32:52 +1000 Subject: [PATCH 1/2] Update base.html 'styles' block gets overridden. Use 'custom_styles' instead. Entire 'customizing css' page in docs does not work. --- ckanext/example_theme_docs/v13_custom_css/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/example_theme_docs/v13_custom_css/templates/base.html b/ckanext/example_theme_docs/v13_custom_css/templates/base.html index 10d537abd84..85dd0fdf851 100644 --- a/ckanext/example_theme_docs/v13_custom_css/templates/base.html +++ b/ckanext/example_theme_docs/v13_custom_css/templates/base.html @@ -1,6 +1,6 @@ {% ckan_extends %} -{% block styles %} +{% block custom_styles %} {{ super() }} {% endblock %} From 700fb01d32533051c35aeadac8e2f15659369cb9 Mon Sep 17 00:00:00 2001 From: tkallady <43975406+tkallady@users.noreply.github.com> Date: Thu, 11 Apr 2024 11:35:14 +1000 Subject: [PATCH 2/2] Update css.rst --- doc/theming/css.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/theming/css.rst b/doc/theming/css.rst index d8166c9e75d..834423f338e 100644 --- a/doc/theming/css.rst +++ b/doc/theming/css.rst @@ -58,7 +58,7 @@ and put this Jinja code in it: .. literalinclude:: /../ckanext/example_theme_docs/v13_custom_css/templates/base.html :language: django -The default ``base.html`` template defines a ``styles`` block which can be +The default ``base.html`` template defines a ``custom_styles`` block which can be extended to link to custom CSS files (any code in the styles block will appear in the ```` of the HTML page).