diff --git a/Dockerfile b/Dockerfile index 4858144c0..f8dcd4645 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-buster +FROM python:3.10-bullseye COPY . /workspaces/ubyssey.ca/ WORKDIR /workspaces/ubyssey.ca/ # Installs some basics diff --git a/article/models.py b/article/models.py index 7e9a8ff8b..ee75942bd 100644 --- a/article/models.py +++ b/article/models.py @@ -748,6 +748,8 @@ def get_template(self, request): return "article/article_page_supplement_2024_science.html" elif self.layout == 'femme-2024': return "article/supplements/article_page_supplement_2024_femme.html" + elif self.layout == 'nocturne-2024': + return "article/supplements/article_page_supplement_2024_nocturne.html" return "article/article_page.html" @@ -880,6 +882,7 @@ def get_template(self, request): ('guide-2024', 'Guide (2024 style)'), ('science-2024', 'Science Supplement (2024)'), ('femme-2024', 'Femme Culture Special Issue (2024)'), + ('nocturne-2024', 'Nocturne Features Supplement (2024)'), ], ), ), diff --git a/article/templates/article/objects/cover_story.html b/article/templates/article/objects/cover_story.html index 9b9eac3f2..f4a5e1f37 100644 --- a/article/templates/article/objects/cover_story.html +++ b/article/templates/article/objects/cover_story.html @@ -19,9 +19,11 @@ {% endif %}
- - {{ article.title|safe }} - +
+ + {{ article.title|safe }} + +

{% if article.lede %}{{article.lede|safe}}{% else %}{{article.search_description|safe}}{% endif %}

+
+ + + + + + + + + + + +
    {% for article in self.get_category_articles %} {% if article.featured_media.first.image %} diff --git a/article/templates/article/supplements/article_page_supplement_2024_nocturne.html b/article/templates/article/supplements/article_page_supplement_2024_nocturne.html new file mode 100644 index 000000000..451394250 --- /dev/null +++ b/article/templates/article/supplements/article_page_supplement_2024_nocturne.html @@ -0,0 +1,210 @@ +{% extends 'ubyssey/base.html' %} + +{% load static %} +{% load wagtailcore_tags %} +{% load wagtailimages_tags %} +{% load wagtailuserbar %} +{% load ubyssey_ad_filters %} +{% load ubyssey_ad_tags %} +{% load menu_tags %} + +{% block root %}style="--highlightColour:{{self.colour}}"{%endblock%} +{% block darkmode %}{%endblock%} + +{% block stylesheet %} + +{% endblock %} + +{% block head_scripts %} + + +{% endblock %} + +{% block header %} + +{% endblock %} + +{% block pre_main_content %} +{% endblock %} + +{% block content %} +
    + +
    +
    + {% block banner %} +
    +
    + +
    + + {% if self.title_tag %} +

    {{self.title_tag}}//

    + {% endif %} + +
    +

    + {% if self.fw_alternate_title %} + {{self.fw_alternate_title|safe}} + {% else %} + {{ self.title|safe }} + {% endif %} +

    +
    + + {% if self.fw_above_cut_lede %} +

    {{ self.fw_above_cut_lede }}

    + {% endif %} +
    +
    + +
    + +
    +
    + {% endblock %} + +
    + {% comment %} {% endcomment %} + {% for block in self.content %} + {% include_block block with id=block.id %} + {% endfor %} + +
    +
    +
    + +
    + +{% endblock %} + +{% block post_main_content %} +{% wagtailuserbar %} +{% endblock %} + + +{% block footer %} +
    +
    + +
    + + +
    +
    +

    + The Ubyssey acknowledges we operate on the traditional, ancestral and stolen territories of the Coast Salish peoples including the xʷməθkʷəy̓əm (Musqueam), Sḵwx̱wú7mesh Úxwumixw (Squamish) and səlilwətaɬ (Tsleil-Waututh) nations. Read More. +

    +
    + +
    +
    + +{% endblock %} \ No newline at end of file diff --git a/article/templatetags/articletags.py b/article/templatetags/articletags.py index 4fce05710..acb10b38e 100644 --- a/article/templatetags/articletags.py +++ b/article/templatetags/articletags.py @@ -42,8 +42,6 @@ def display_pubdate(value): pubdate = value.astimezone(timezone.get_current_timezone()) today = timezone.now().astimezone(timezone.get_current_timezone()) delta = today - pubdate - print(today.date()) - print(pubdate.date()) if delta.total_seconds() > datetime.timedelta(days=365).total_seconds(): return pubdate.strftime("%B xx%d, %Y").replace("xx0","").replace("xx","") diff --git a/authors/templates/authors/author_page.html b/authors/templates/authors/author_page.html index 7f7476f81..77c90af23 100644 --- a/authors/templates/authors/author_page.html +++ b/authors/templates/authors/author_page.html @@ -50,9 +50,9 @@

    Pinned

{% endif %} -
+
{% for type in media_types %} -

{{type.1}}

+

{{type.1}}

{% endfor %}
diff --git a/home/templates/home/stream_blocks/section_block.html b/home/templates/home/stream_blocks/section_block.html index 12e6bf587..a3ff620ea 100644 --- a/home/templates/home/stream_blocks/section_block.html +++ b/home/templates/home/stream_blocks/section_block.html @@ -1,7 +1,7 @@ {% load wagtailcore_tags %}
-

+

{{ section|title }}

diff --git a/infinitefeed/blocks.py b/infinitefeed/blocks.py index 8650c0cea..cb615ac1a 100644 --- a/infinitefeed/blocks.py +++ b/infinitefeed/blocks.py @@ -157,6 +157,8 @@ def get_context(self, value, parent_context=None): class SidebarImageLinkBlock(blocks.StructBlock): image = ImageChooserBlock(required=True) link = blocks.URLBlock(required=False) + alt_text = blocks.CharBlock(max_length=255, + help_text="For accessibility to screen reader users, enter a description of this image. Included any relevant text inside the image.") class Meta: template = "infinitefeed/sidebar/sidebar_image_link_block.html" verbose_name = "Sidebar Image with Optional Link" diff --git a/infinitefeed/templates/infinitefeed/sidebar/sidebar_flex_stream_block.html b/infinitefeed/templates/infinitefeed/sidebar/sidebar_flex_stream_block.html index 87eb2ecd6..df084e30c 100644 --- a/infinitefeed/templates/infinitefeed/sidebar/sidebar_flex_stream_block.html +++ b/infinitefeed/templates/infinitefeed/sidebar/sidebar_flex_stream_block.html @@ -1,6 +1,6 @@ {% load wagtailcore_tags %} -