Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMD-107 News Feed Main Page Should Use Page Title #818

Merged
merged 1 commit into from
Mar 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions taccsite_cms/templates/djangocms_blog/post_list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{# https://github.com/nephila/djangocms-blog/blob/1.1.1/djangocms_blog/templates/djangocms_blog/post_list.html #}
{% extends "djangocms_blog/base.html" %}
{% load i18n easy_thumbnails_tags %}{% spaceless %}
{% load i18n easy_thumbnails_tags cms_tags %}{% spaceless %}

{% block canonical_url %}<link rel="canonical" href="{{ view.get_view_url }}"/>{% endblock canonical_url %}

Expand All @@ -24,23 +24,23 @@ <h2>
{# /TACC #}
{# TACC (reformat headings): #}
{% if author %}
<strong>{% trans "News" %}</strong>
<strong>{% page_attribute "page_title" %}</strong>
<em>{% trans "Articles by" %} {{ author.get_full_name }}</em>
{% elif archive_date %}
<strong>{% trans "News" %}</strong>
<strong>{% page_attribute "page_title" %}</strong>
<span>{% trans "Archive" %}</span>
<em>{% if month %}{{ archive_date|date:'F' }} {% endif %}{{ year }}</em>
{% elif tagged_entries %}
<strong>{% trans "News" %}</strong>
<strong>{% page_attribute "page_title" %}</strong>
<span>{% trans "Tag" %}</span>
<em>{{ tagged_entries|capfirst }}</em>
{% elif category %}
<strong>{% trans "News" %}</strong>
<strong>{% page_attribute "page_title" %}</strong>
<span>{% trans "Category" %}</span>
<em>{{ category }}</em>
{# TACC (add default heading): #}
{% else %}
{% trans "News" %}
{% page_attribute "page_title" %}
{% endif %}
{# /TACC #}
{# /TACC #}
Expand Down