Skip to content

Commit bcfd9b4

Browse files
authored
Merge pull request #104 from springload/fix/tile-content-fixes
Fix event tile content
2 parents 2374176 + b474a08 commit bcfd9b4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

templates/cdhpages/blocks/tile.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
{% if tile_type == 'internal_page_tile' %}
2424

2525
{% if internal_page.specific.page_type == 'BlogPost' %}
26-
<p>{{ internal_page.specific.category }} </p>
2726
<p>{{ internal_page.specific.first_published_at|date:"j F Y" }}</p>
2827
{{ internal_page.specific.short_description|default:internal_page.specific.description|richtext }}
2928

@@ -69,12 +68,14 @@
6968
{% endif %}
7069
</div>
7170

72-
{% if internal_page.specific.cdh_built or internal_page.specific.page_type == 'Event' %}
71+
{% if internal_page.specific.cdh_built or internal_page.specific.page_type == 'Event' or internal_page.specific.page_type == 'BlogPost' %}
7372
<div class="tile__tag">
7473
{% if internal_page.specific.cdh_built %}
7574
<div class="tag tag--dark">Built by CDH</div>
76-
{% elif internal_page.specific.page_type == 'Event' %}
75+
{% elif internal_page.specific.page_type == 'Event' and internal_page.specific.type %}
7776
<div class="tag tag--dark">{{ internal_page.specific.type }}</div>
77+
{% elif internal_page.specific.category %}
78+
<div class="tag tag--dark">{{ internal_page.specific.category }}</div>
7879
{% endif %}
7980
</div>
8081
{% endif %}

0 commit comments

Comments
 (0)