Welcome to mirror list, hosted at ThFree Co, Russian Federation.

publications.html « sections « partials « layouts - github.com/hossainemruz/toha.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 733d5789512f6bdaf7fa391d04ab24b5f4f29332 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{{ $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>