Skip to content

Commit

Permalink
Sidebar tweaks (#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb authored Jan 23, 2025
1 parent 35d0d15 commit 6e1ba7d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/core/templates/tags/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="content-stack">
<div class="content-stack large">
{% for section in sections %}{{ section }}{% endfor %}
</div>
4 changes: 2 additions & 2 deletions src/dw_design_system/dwds/components/engagement.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load wagtailimages_tags static humanize %}
{% load wagtailimages_tags static humanize formatting %}

<div class="content-item content-custom-sidebar-wrapper">
<div class="content-custom-sidebar">
Expand All @@ -17,7 +17,7 @@ <h3>
<h4 class="post-title">{{ post_title }}</h4>
</div>
{% endif %}
{% if excerpt %}<p>{{ excerpt|truncatewords:16 }}</p>{% endif %}
{% if excerpt %}<p>{{ excerpt|truncate_magic:25 }}</p>{% endif %}
</div>

{% if updated_date or created_date or comment_count %}
Expand Down
6 changes: 4 additions & 2 deletions src/news/templates/news/news_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ <h2 class="govuk-heading-m">Leave a comment</h2>
{% endblock post_primary_content %}

{% block secondary_content %}
{% include "news/includes/news_categories.html" %}
{{ block.super }}
<div class="content-stack large">
{{ block.super }}
{% comment %} {% include "news/includes/news_categories.html" %} {% endcomment %}
</div>
{% endblock secondary_content %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
{% load wagtailcore_tags %}

{% block secondary_content %}
<div class="content-stack">
<div class="content-stack large">
{{ block.super }}
{% if page_topics %}
<div class="dwds-content-item-card no-shadow">
<div class="dwds-content-item-card">
<div class="content-item">
<div class="content-main">
<div class="content-body content-stack">
Expand All @@ -21,6 +22,5 @@ <h2>Related topics</h2>
</div>
</div>
{% endif %}
{{ block.super }}
</div>
{% endblock secondary_content %}

0 comments on commit 6e1ba7d

Please sign in to comment.