From 258b7ff920bfe3f92db0ea3b8aca81205719576d Mon Sep 17 00:00:00 2001 From: Hank Tadeusiak Date: Sat, 15 Dec 2018 17:39:49 -0800 Subject: [PATCH 1/2] fixes individual news article title, uses article name instead of part of page url --- .../templates/snippets/display_short_carousel_snippet.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/templates/snippets/display_short_carousel_snippet.html b/website/templates/snippets/display_short_carousel_snippet.html index 37fd9d51..d931682d 100644 --- a/website/templates/snippets/display_short_carousel_snippet.html +++ b/website/templates/snippets/display_short_carousel_snippet.html @@ -14,8 +14,8 @@ {# | title is built into Django, how handy! see: https://stackoverflow.com/questions/14268342/make-the-first-letter-uppercase-inside-a-django-template #} {#
{{ request.path|title|slice:"1:"|slice:":-1" }}
#}
- {% if page_title %} - {{ page_title }} + {% if news.title %} + {{ news.title }} {% else %} {{ request.path|get_url_page|title }} {% endif %} From da887b28b4f60740d55e1dc2f068ee3bb15016f2 Mon Sep 17 00:00:00 2001 From: Hank Tadeusiak Date: Sat, 15 Dec 2018 19:35:05 -0800 Subject: [PATCH 2/2] includes page_title in if else statement for fixing the individual news article title --- website/templates/snippets/display_short_carousel_snippet.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/templates/snippets/display_short_carousel_snippet.html b/website/templates/snippets/display_short_carousel_snippet.html index d931682d..c80e30c1 100644 --- a/website/templates/snippets/display_short_carousel_snippet.html +++ b/website/templates/snippets/display_short_carousel_snippet.html @@ -16,6 +16,8 @@
{% if news.title %} {{ news.title }} + {% elif page_title %} + {{ page_title }} {% else %} {{ request.path|get_url_page|title }} {% endif %}