Skip to content

Commit

Permalink
allow customizing heading level of event cards
Browse files Browse the repository at this point in the history
don't add heading anchors in event cards
  • Loading branch information
jean-gui committed Nov 18, 2024
1 parent e07dfd7 commit 505d941
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/components/listings/events/entry.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<div>
<div class="not-sidebar">
{% block event_main_content %}
<h2 class="card__heading" id="event-{{ index }}-title">
<{{ event_heading|default('h2') }} class="card__heading" id="event-{{ index }}-title" data-anchor="no">
<a class="card__link" href="{% block event_url %}{{ entry.url }}{% endblock %}">
{% block event_title %}{{ entry.title }}{% endblock %}
</a>
</h2>
</{{ event_heading|default('h2') }}>
<div>
{% block event_excerpt %}
{{ entry.excerpt }}
Expand Down

0 comments on commit 505d941

Please sign in to comment.