File tree 1 file changed +4
-3
lines changed
templates/cdhpages/blocks
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 23
23
{% if tile_type == 'internal_page_tile' %}
24
24
25
25
{% if internal_page.specific.page_type == 'BlogPost' %}
26
- < p > {{ internal_page.specific.category }} </ p >
27
26
< p > {{ internal_page.specific.first_published_at|date:"j F Y" }}</ p >
28
27
{{ internal_page.specific.short_description|default:internal_page.specific.description|richtext }}
29
28
69
68
{% endif %}
70
69
</ div >
71
70
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' %}
73
72
< div class ="tile__tag ">
74
73
{% if internal_page.specific.cdh_built %}
75
74
< 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 %}
77
76
< 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 >
78
79
{% endif %}
79
80
</ div >
80
81
{% endif %}
You can’t perform that action at this time.
0 commit comments