{# `with_anchor=true` forces the `<div class="anchor" id="...">` wrap
   even when the anchor id is empty — matches the live news.html.twig
   which always renders the wrap. A non-empty `anchor` argument implies
   `with_anchor=true` automatically. #}
{% macro section_title(title, anchor="", with_anchor=false) %}
<section class="section-title">
  <div class="container text-center">
    {%- if anchor or with_anchor %}
    <div class="anchor" id="{{ anchor }}">
      <h2>{{ title }}</h2>
    </div>
    {%- else %}
    <h2>{{ title }}</h2>
    {%- endif %}
    <span class="bordered-icon"><i class="fa fa-circle-thin"></i></span>
  </div>
</section>
{% endmacro %}
