Skip to content

Commit

Permalink
Merge pull request #29 from welpo/fix/page_image_csp
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket authored Jun 14, 2024
2 parents ba71c93 + 18ec332 commit 451bafd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
{% endif %}
<script defer src="/sw-load.js" integrity="sha512-{{ get_hash(path='sw-load.js', sha_type=512, base64=true) | safe }}" data-cache="{% if posts_config.paginate_by %}{% for i in range(start=2, end=posts_page_count + 1) %}{{ config.base_url ~ "/posts/page/" ~ i ~ "/" | safe }} {% endfor %}{% endif %}{% if config.taxonomies %}{% for taxonomy in config.taxonomies %}{% set inner_taxonomy = get_taxonomy(kind=taxonomy.name) %}{{ inner_taxonomy.permalink | safe }} {% for term in inner_taxonomy.items %}{{ term.permalink | safe }} {% endfor %}{% endfor %}{% endif %}{% if posts.pages %}{% for post in posts.pages %}{{ post.permalink | safe }} {% if post.assets %}{% for asset in post.assets %}{{ config.base_url ~ asset | safe }} {% endfor %}{%endif%}{% endfor %}{% endif %}{% for link in config.extra.menu.links %}{{ get_url(path=link.url, cachebust=true) | safe }} {% endfor %}{% if config.extra.menu.posts == true %} /posts/ {% endif %}{% for link in config.extra.images.categories %}{% if link.image is not matching("^http[s]?://") %}{{ link.image | safe }} {% endif %}{% endfor %}{% if config.extra.images.home is not matching("^http[s]?://") %}{{ config.extra.images.home }} {% endif %}{% if config.extra.images.post_list is not matching("^http[s]?://") %}{{ config.extra.images.post_list }} {% endif %}{% if config.extra.images.default_post is not matching("^http[s]?://") %}{{ config.extra.images.default_post }} {% endif %} {{ config.extra.logo | safe }}{% if config.extra.home.glitch %} /glitch.css{% endif %}{% if config.build_search_index == true %} /search.js /elasticlunr.min.js /search_index.{{ config.default_language }}.json{% endif %}"></script>
{%- endif %}
{%- if page.extra.image %}
{%- if page_image %}
<style>{{ macros::image_style(url=page_image) }}</style>
{%- elif category_image %}
<style>{{ macros::image_style(url=category_image) }}</style>
Expand Down

0 comments on commit 451bafd

Please sign in to comment.