Skip to content

Commit c2430d4

Browse files
committed
Merge branch 'main' into release/3
2 parents f6953ba + 996a5a6 commit c2430d4

34 files changed

Lines changed: 68 additions & 37 deletions

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ stages:
153153
- task: UsePythonVersion@0
154154
displayName: 'Use Python version'
155155
inputs:
156-
versionSpec: '3.12'
156+
versionSpec: '3.11'
157157
architecture: 'x64'
158158

159159
- script: python -m pip install -r requirements-ci.txt

coderedcms/models/page_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ def get_index_children(self):
489489
classifier=self.index_order_by_classifier,
490490
# Reverse ManyToMany of `coderedpage.classifier_terms`.
491491
coderedpage=models.OuterRef("pk"),
492-
)
492+
)[:1]
493493
query = query.annotate(
494494
term_sort_order=models.Subquery(terms.values("sort_order"))
495495
)

coderedcms/project_template/basic/project_name/settings/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@
165165

166166
WAGTAIL_ENABLE_UPDATE_CHECK = False
167167

168+
WAGTAILIMAGES_EXTENSIONS = ["gif", "jpg", "jpeg", "png", "webp", "svg"]
169+
168170

169171
# Base URL to use when referring to full URLs within the Wagtail admin backend -
170172
# e.g. in notification emails. Don't include '/admin' or a trailing slash

coderedcms/project_template/pro/project_name/settings/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@
173173

174174
WAGTAILDOCS_DOCUMENT_MODEL = "custom_media.CustomDocument"
175175

176+
WAGTAILIMAGES_EXTENSIONS = ["gif", "jpg", "jpeg", "png", "webp", "svg"]
177+
176178
# Base URL to use when referring to full URLs within the Wagtail admin backend -
177179
# e.g. in notification emails. Don't include '/admin' or a trailing slash
178180
WAGTAILADMIN_BASE_URL = "http://{{ domain }}"

coderedcms/templates/coderedcms/blocks/article_block_card.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load wagtailimages_tags %}
22
<div class="card mb-3">
33
{% if article.cover_image %}
4-
{% image article.cover_image fill-800x450 format-webp as cover_image %}
4+
{% image article.cover_image fill-800x450 format-webp preserve-svg as cover_image %}
55
<a href="{{article.url}}" title="{{article.title}}"><img class="card-img-top" src="{{cover_image.url}}" alt="{{cover_image.title}}"></a>
66
{% endif %}
77
<div class="card-body">

coderedcms/templates/coderedcms/blocks/base_link_block.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{% if ga_event_label %}data-ga-event-label="{{ ga_event_label }}"{% endif %}
1111
{% if ga_event_category %}data-ga-event-category="{{ ga_event_category }}"{% endif %}>
1212
{% if value.image %}
13-
{% image value.image max-256x256 format-webp as img %}
13+
{% image value.image max-256x256 format-webp preserve-svg as img %}
1414
<img src="{{img.url}}" class="w-100" alt="{{img.image.title}}">
1515
{% elif value.display_text %}
1616
{{value.display_text|safe}}

coderedcms/templates/coderedcms/blocks/card_block.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load wagtailcore_tags wagtailimages_tags %}
22
<div class="card mb-3 {{self.settings.custom_css_class}}" {% if self.settings.custom_id %}id="{{self.settings.custom_id}}"{% endif %}>
33
{% if self.image %}
4-
{% image self.image fill-800x450 format-webp as card_img %}
4+
{% image self.image fill-800x450 format-webp preserve-svg as card_img %}
55
<img class="card-img-top w-100" src="{{card_img.url}}" alt="{{card_img.title}}">
66
{% endif %}
77
<div class="card-body">

coderedcms/templates/coderedcms/blocks/card_blurb.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load wagtailcore_tags wagtailimages_tags %}
22
<div class="card mb-3 border-0 bg-transparent text-center {{self.settings.custom_css_class}}" {% if self.settings.custom_id %}id="{{self.settings.custom_id}}"{% endif %}>
33
{% if self.image %}
4-
{% image self.image fill-256x256 format-webp as card_img %}
4+
{% image self.image fill-256x256 format-webp preserve-svg as card_img %}
55
<img class="rounded-circle w-25 mx-auto" src="{{card_img.url}}" alt="{{card_img.title}}">
66
{% endif %}
77
<div class="card-body">

coderedcms/templates/coderedcms/blocks/card_foot.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load wagtailcore_tags wagtailimages_tags %}
22
<div class="card mb-3 {{self.settings.custom_css_class}}" {% if self.settings.custom_id %}id="{{self.settings.custom_id}}"{% endif %}>
33
{% if self.image %}
4-
{% image self.image fill-800x450 format-webp as card_img %}
4+
{% image self.image fill-800x450 format-webp preserve-svg as card_img %}
55
<img class="card-img-top w-100" src="{{card_img.url}}" alt="{{card_img.title}}">
66
{% endif %}
77
<div class="card-body">

coderedcms/templates/coderedcms/blocks/card_head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="card mb-3 {{self.settings.custom_css_class}}" {% if self.settings.custom_id %}id="{{self.settings.custom_id}}"{% endif %}>
33
{% if self.title %}<h5 class="card-header">{{self.title}}</h5>{% endif %}
44
{% if self.image %}
5-
{% image self.image fill-800x450 format-webp as card_img %}
5+
{% image self.image fill-800x450 format-webp preserve-svg as card_img %}
66
<img class="w-100" src="{{card_img.url}}" alt="{{card_img.title}}">
77
{% endif %}
88
<div class="card-body">

0 commit comments

Comments
 (0)