{{ $sectionID := replace (lower .section.name) " " "-"  }}
{{ if .section.id }}
  {{ $sectionID = .section.id }}
{{ end }}

<div class="container-fluid anchor pb-5 publications-section" id="{{ $sectionID }}">
  {{ if not (.section.hideTitle) }}
    <h1 class="text-center">
        <span id="{{ $sectionID }}"></span>{{ .section.name }}</h1>
  {{ else }}
    <h1 class="text-center" style="display: none">
        <span id="{{ $sectionID }}"></span>{{ .section.name }}</h1>
  {{ end }}
  <div class="container ml-auto text-center">
    <div class="btn-group flex-wrap" role="pub-group" id="publication-filter-buttons">
      {{ range .buttons }}
      <button type="button" class="btn btn-dark pub-filtr-control" data-filter="pub-{{ .filter }}">
        {{ .name }}
      </button>
      {{ end }}
    </div>
  </div>
  <div class="container filtr-publications">
    <div class="row" id="publication-card-holder">
      {{ range .publications }}
        {{ partial "cards/publication" . }}
      {{ end }}
    </div>
  </div>
</div>
