Skip to content

Commit bc411d5

Browse files
authored
Merge pull request #164 from w3c/jg_calendar
Jg calendar
2 parents 125a599 + 505d941 commit bc411d5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

templates/components/listings/events/entry.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<div>
77
<div class="not-sidebar">
88
{% block event_main_content %}
9-
<h2 class="card__heading" id="event-{{ index }}-title">
9+
<{{ event_heading|default('h2') }} class="card__heading" id="event-{{ index }}-title" data-anchor="no">
1010
<a class="card__link" href="{% block event_url %}{{ entry.url }}{% endblock %}">
1111
{% block event_title %}{{ entry.title }}{% endblock %}
1212
</a>
13-
</h2>
13+
</{{ event_heading|default('h2') }}>
1414
<div>
1515
{% block event_excerpt %}
1616
{{ entry.excerpt }}

templates/pages/listing.html.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
{% block filters %}{% endblock %}
1919
</div>
2020
</div>
21+
{% block toc %}
22+
{% if page.displayOnThisPageNavigation is defined and page.displayOnThisPageNavigation and toc is defined %}
23+
{{ include('@W3CWebsiteTemplates/components/styles/toc.html.twig') }}
24+
{% endif %}
25+
{% endblock %}
2126
{% block list %}{% endblock %}
2227
{% block pagination %}
2328
{% include '@W3CWebsiteTemplates/components/styles/pagination.html.twig' %}

0 commit comments

Comments
 (0)