Skip to content

Commit

Permalink
Merge pull request #29 from daveytyke/main
Browse files Browse the repository at this point in the history
various changes
  • Loading branch information
daveytyke authored Dec 20, 2024
2 parents 67eb647 + e0c5a4f commit 5954a7f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ckanext/ukdstheme/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def update_config(self, config):
toolkit.add_template_directory(config, 'templates')
toolkit.add_public_directory(config, 'public')
toolkit.add_resource('assets', 'ukdstheme')
toolkit.add_resource('assets', 'civic')
toolkit.add_resource('assets', 'cookie-banner-js')

# ITemplateHelpers

Expand Down
6 changes: 5 additions & 1 deletion ckanext/ukdstheme/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
{% block custom_styles %}
{{ super() }}
<link rel="stylesheet" href="/bg-{{bg_image_no}}.css" />
{% endblock %}

{% endblock %}
{% block cookie_banner %}
<script src="https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js"></script>
{% asset 'ukdstheme/cookie-banner-js' %}
{% endblock %}
2 changes: 1 addition & 1 deletion ckanext/ukdstheme/templates/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% ckan_extends %}
{% block header_content %}
<script src="https://cc.cdn.civiccomputing.com/9/cookieControl-9.x.min.js"></script>
{% asset 'ukdstheme/cookie-banner-js' %}

{% endblock %}
3 changes: 0 additions & 3 deletions ckanext/ukdstheme/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
making sitewide header changes it is preferable to override the header.html
file.
#}
{%- block footer %}
{% include "header.html" %}
{% endblock -%}

{# The content block allows you to replace the content of the page if needed #}
{%- block content %}
Expand Down

0 comments on commit 5954a7f

Please sign in to comment.