projects.html 1005 B

123456789101112131415161718192021222324252627282930
  1. {{ $sectionID := replace (lower .section.name) " " "-" }}
  2. {{ if .section.id }}
  3. {{ $sectionID = .section.id }}
  4. {{ end }}
  5. <div class="container-fluid anchor pb-5 projects-section" id="{{ $sectionID }}">
  6. {{ if not (.section.hideTitle) }}
  7. <h1 class="text-center">
  8. <span id="{{ $sectionID }}"></span>{{ .section.name }}</h1>
  9. {{ else }}
  10. <h1 class="text-center" style="display: none">
  11. <span id="{{ $sectionID }}"></span>{{ .section.name }}</h1>
  12. {{ end }}
  13. <div class="container ml-auto text-center">
  14. <div class="btn-group flex-wrap" role="group" id="project-filter-buttons">
  15. {{ range .buttons }}
  16. <button type="button" class="btn btn-dark project-filtr-control" data-filter="{{ .filter }}">
  17. {{ .name }}
  18. </button>
  19. {{ end }}
  20. </div>
  21. </div>
  22. <div class="container filtr-projects">
  23. <div class="row" id="project-card-holder">
  24. {{ range .projects }}
  25. {{ partial "cards/project" . }}
  26. {{ end }}
  27. </div>
  28. </div>
  29. </div>