diff --git a/article/templates/article/objects/blog_column-latest.html b/article/templates/article/objects/blog_column-latest.html new file mode 100644 index 000000000..98f38a09a --- /dev/null +++ b/article/templates/article/objects/blog_column-latest.html @@ -0,0 +1,33 @@ +{% load articletags %} + +{% comment %} +This template is for the columns for the blog section on the home page under the digital prints section +{% endcomment %} + + +{% load cache %} +{% load humanize %} +{% load wagtailcore_tags %} +{% load wagtailimages_tags %} +{% load video_filters %} +
+
+ {% if article.featured_media.first %} + {% if article.featured_media.first.image %} + + {% image article.featured_media.first.image fill-250x250-c100 %} + + {% elif article.featured_media.first.video %} + + {% endif %} + {% endif %} +
+
+

+ {{article.get_parent.title}} +

+

+ {{ article.title|safe }} +

+
+
\ No newline at end of file diff --git a/article/templates/article/objects/blog_column.html b/article/templates/article/objects/blog_column.html index c8ddbf9d5..a0a8ae73e 100644 --- a/article/templates/article/objects/blog_column.html +++ b/article/templates/article/objects/blog_column.html @@ -11,20 +11,20 @@ {% load wagtailimages_tags %} {% load video_filters %}
-
- +
\ No newline at end of file diff --git a/home/templates/home/home_page.html b/home/templates/home/home_page.html index 15432b705..8c0e7acf5 100644 --- a/home/templates/home/home_page.html +++ b/home/templates/home/home_page.html @@ -47,7 +47,7 @@

BREAKING: {{ article.title|safe }}

{% include "article/objects/cover_story.html" with article=coverstory%} {% endif %}
- {% now "d N, Y" as date %} + {% now "d N Y" as date %} {% now "l" as dayOfWeek %} {% include 'home/objects/home_heading-box.html' with styling='lightmode' title="Top Stories" text=date textBold=dayOfWeek %} diff --git a/infinitefeed/blocks.py b/infinitefeed/blocks.py index d744ba9fd..e6f9b1d76 100644 --- a/infinitefeed/blocks.py +++ b/infinitefeed/blocks.py @@ -70,7 +70,7 @@ def get_context(self, value, parent_context=None): context['articles'] = ArticlePage.objects.live().public().filter(~(Q(current_section='guide'))).order_by('-explicit_published_at')[:5] return context class Meta: - template = "infinitefeed/sidebar/sidebar_section_block.html" + template = "infinitefeed/sidebar/sidebar_latest_block.html" class SidebarManualArticles(blocks.StructBlock): title = blocks.CharBlock( diff --git a/infinitefeed/templates/infinitefeed/sidebar/sidebar_latest_block.html b/infinitefeed/templates/infinitefeed/sidebar/sidebar_latest_block.html new file mode 100644 index 000000000..d6f5b5868 --- /dev/null +++ b/infinitefeed/templates/infinitefeed/sidebar/sidebar_latest_block.html @@ -0,0 +1,12 @@ +{% load articletags %} + +
+ {% include 'home/objects/home_heading-box.html' with styling='boxLabel-highlight' title=title text='Last updated:' textBold=articles.0.explicit_published_at|display_pubdate %} + +
\ No newline at end of file diff --git a/section/templates/section/objects/section_featured.html b/section/templates/section/objects/section_featured.html index ebe357801..72af6150b 100644 --- a/section/templates/section/objects/section_featured.html +++ b/section/templates/section/objects/section_featured.html @@ -14,7 +14,7 @@ {% endfor %}
-