skills.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {{ $sectionID := replace (lower .section.name) " " "-" }}
  2. {{ if .section.id }}
  3. {{ $sectionID = .section.id }}
  4. {{ end }}
  5. <div class="container-fluid anchor pb-5 skills-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. {{ if .section.filter }}
  14. <div class="container ms-auto text-center">
  15. <div class="btn-group flex-wrap" role="group" id="skill-filter-buttons">
  16. {{ range .buttons }}
  17. <button type="button" class="btn btn-dark skill-filtr-control" data-filter="{{ .filter }}">
  18. {{ .name }}
  19. </button>
  20. {{ end }}
  21. </div>
  22. </div>
  23. <div class="container d-flex-block filtr-skills">
  24. <div class="row" id="skill-card-holder" style="margin-left:unset">
  25. {{ else }}
  26. <div class="container d-flex-block">
  27. <div class="row" id="primary-skills">
  28. {{ end }}
  29. {{ range .skills }}
  30. {{ partial "cards/skill.html" . }}
  31. {{ end }}
  32. </div>
  33. </div>
  34. </div>