projects.html 807 B

1234567891011121314151617181920212223242526
  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">{{ .section.name }}</h1>
  8. {{ end }}
  9. <div class="container ml-auto text-center">
  10. <div class="btn-group flex-wrap" role="group" id="project-filter-buttons">
  11. {{ range .buttons }}
  12. <button type="button" class="btn btn-dark" data-filter="{{ .filter }}">
  13. {{ .name }}
  14. </button>
  15. {{ end }}
  16. </div>
  17. </div>
  18. <div class="container filtr-projects">
  19. <div class="row" id="project-card-holder">
  20. {{ range .projects }}
  21. {{ partial "cards/project" . }}
  22. {{ end }}
  23. </div>
  24. </div>
  25. </div>