- {% include './tacc/layout-choice-form.html' %}
+ {% include './tacc/layout-choice-form.html' with list_selector='.blog-list' %}
{% block content_blog %}{% endblock %}
diff --git a/taccsite_cms/templates/djangocms_blog/includes/blog_meta.html b/taccsite_cms/templates/djangocms_blog/includes/blog_meta.html
index 6d1739d4e..96eb4b4c4 100644
--- a/taccsite_cms/templates/djangocms_blog/includes/blog_meta.html
+++ b/taccsite_cms/templates/djangocms_blog/includes/blog_meta.html
@@ -16,9 +16,13 @@
{% endif %}
{# TACC (add class so CSS can target this element): #}
- {# /TACC #}
+ {# TACC (show date if published otherwise show "Unpublished"): #}
+ {% if post.date_published %}
+ {# /TACC #}
{# TACC (add and so whitespace can be stripped): #}
- {% trans "Published" %}
+ {# TACC ("Published" vs "To be published"): #}
+ {% if post.publish %}{% trans "Published" %}{% else %}{% trans "To be published" %}{% endif %}
+ {# /TACC #}
{# /TACC #}
{# TACC (wrap with
{% if post.date_featured %}
{# TACC (add class so CSS can target this element): #}
{# /TACC #}
{# TACC (add and so whitespace can be stripped): #}
- {% trans "Published" %}
+ {# TACC (fix from text "Published" to text "Featured"): #}
+ {% trans "Featured" %}
+ {# /TACC #}
{# /TACC #}
@@ -60,6 +71,8 @@
{# /TACC #}
{% endif %}
{% endfor %}
+ {% else %}
+
{% trans "Uncategorized" %}
{% endif %}
{# TACC (distinguish categories and tags via class): #}
{# TACC (strip whitespace): #}
diff --git a/taccsite_cms/templates/djangocms_blog/post_detail.html b/taccsite_cms/templates/djangocms_blog/post_detail.html
index eb1d0b279..ec20bdd66 100644
--- a/taccsite_cms/templates/djangocms_blog/post_detail.html
+++ b/taccsite_cms/templates/djangocms_blog/post_detail.html
@@ -15,9 +15,25 @@
{# /TACC #}
+ {# TACC (use greater heading level): #}
+ {# TACC (do not use large header until core-styles.cms.css): #}
+ {% if settings.TACC_CORE_STYLES_VERSION >= 1 %}
+
{% render_model post "title" %}
+ {% else %}
{% render_model post "title" %}
+ {% endif %}
+ {# /TACC #}
+ {# /TACC #}
{% if post.subtitle %}
+ {# TACC (use greater heading level): #}
+ {# TACC (do not use large header until core-styles.cms.css): #}
+ {% if settings.TACC_CORE_STYLES_VERSION >= 1 %}
+
{% render_model post "subtitle" %}
+ {% else %}
{% render_model post "subtitle" %}
+ {% endif %}
+ {# /TACC #}
+ {# /TACC #}
{% endif %}
{% block blog_meta %}
{% include "djangocms_blog/includes/blog_meta.html" %}
diff --git a/taccsite_cms/templates/djangocms_blog/post_list.html b/taccsite_cms/templates/djangocms_blog/post_list.html
index 6f4f4673a..2a4421f45 100644
--- a/taccsite_cms/templates/djangocms_blog/post_list.html
+++ b/taccsite_cms/templates/djangocms_blog/post_list.html
@@ -13,13 +13,29 @@
{% block blog_title %}
+ {# TACC (use greater heading level): #}
+ {# TACC (do not use large header until core-styles.cms.css): #}
+ {% if settings.TACC_CORE_STYLES_VERSION >= 1 %}
+
+ {% else %}
+ {% endif %}
+ {# /TACC #}
+ {# /TACC #}
{% if author %}{% trans "Articles by" %} {{ author.get_full_name }}
{% elif archive_date %}{% trans "Archive" %} – {% if month %}{{ archive_date|date:'F' }} {% endif %}{{ year }}
{% elif tagged_entries %}{% trans "Tag" %} – {{ tagged_entries|capfirst }}
{% elif category %}{% trans "Category" %} – {{ category }}
{% else %}{% trans "News" %}{% endif %}
+ {# TACC (use greater heading level): #}
+ {# TACC (do not use large header until core-styles.cms.css): #}
+ {% if settings.TACC_CORE_STYLES_VERSION >= 1 %}
+
+ {% else %}
+ {% endif %}
+ {# /TACC #}
+ {# /TACC #}
{% endblock %}
{% for post in post_list %}
diff --git a/taccsite_cms/templates/djangocms_blog/tacc/layout-choice-form.html b/taccsite_cms/templates/djangocms_blog/tacc/layout-choice-form.html
index 09f8781f3..5aafc5637 100644
--- a/taccsite_cms/templates/djangocms_blog/tacc/layout-choice-form.html
+++ b/taccsite_cms/templates/djangocms_blog/tacc/layout-choice-form.html
@@ -1,3 +1,5 @@
+{# @var list_selector #}
+
{# To support user changing layout of news list #}
{# FAQ: The form is hidden, because styles are not complete #}
{# FAQ: The script is active, so new styles can be tested on a server #}
@@ -15,7 +17,9 @@
import switchLayout from '/static/site_cms/js/modules/switchLayout.js';
const form = document.getElementById('layout-choice');
- const content = document.getElementsByClassName('blog-list')[0];
+ const content = document.querySelector(
+ '{{ list_selector|default:".blog-list" }}'
+ );
const formChoices = form.querySelectorAll('input[name="layout"]');
switchLayout( content, formChoices );
diff --git a/taccsite_cms/templates/guide.html b/taccsite_cms/templates/guide.html
index 716a47bab..72ec294d7 100644
--- a/taccsite_cms/templates/guide.html
+++ b/taccsite_cms/templates/guide.html
@@ -1,5 +1,5 @@
{% extends "fullwidth.html" %}
-{% load cms_tags staticfiles %}
+{% load cms_tags static %}
{% block assets_custom %}
{{ block.super }}
diff --git a/taccsite_cms/templates/guides/getting_started.tam.html b/taccsite_cms/templates/guides/getting_started.tam.html
index 3fcba975d..ed4c58579 100644
--- a/taccsite_cms/templates/guides/getting_started.tam.html
+++ b/taccsite_cms/templates/guides/getting_started.tam.html
@@ -1,5 +1,5 @@
{% extends "guide.html" %}
-{% load cms_tags staticfiles tacc_uri_shortcuts %}
+{% load cms_tags static tacc_uri_shortcuts %}
{% block guide %}
{% site_uri as site_uri %}
diff --git a/taccsite_cms/templates/guides/getting_started.v2.html b/taccsite_cms/templates/guides/getting_started.v2.html
index 923552862..2f58639a7 100644
--- a/taccsite_cms/templates/guides/getting_started.v2.html
+++ b/taccsite_cms/templates/guides/getting_started.v2.html
@@ -1,5 +1,5 @@
{% extends "guide.html" %}
-{% load cms_tags staticfiles tacc_uri_shortcuts %}
+{% load cms_tags static tacc_uri_shortcuts %}
{% block guide %}
{% site_uri as site_uri %}
diff --git a/taccsite_cms/templates/header_branding.html b/taccsite_cms/templates/header_branding.html
index 17705b5e7..36b0d4c4b 100644
--- a/taccsite_cms/templates/header_branding.html
+++ b/taccsite_cms/templates/header_branding.html
@@ -1,5 +1,5 @@
{# @var brands, className #}
-{% load staticfiles custom_portal_settings %}
+{% load static custom_portal_settings %}
{% with settings.BRANDING as brands %}