experiences.html 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. {{ $sectionID := replace (lower .section.name) " " "-" }}
  2. {{ if .section.id }}
  3. {{ $sectionID = .section.id }}
  4. {{ end }}
  5. <div class="container-fluid anchor pb-5 experiences-section">
  6. {{ if not (.section.hideTitle) }}
  7. <h1 class="text-center">
  8. <span id="{{ $sectionID }}"></span>{{ .section.name }}
  9. </h1>
  10. {{ end }}
  11. <div class="container timeline text-justify">
  12. {{ $totalExperiences:= len .experiences }}
  13. {{ range $index,$experience:= .experiences }}
  14. {{ if eq (mod $index 2) 0 }}
  15. <div class="row align-items-center d-flex">
  16. {{ partial "sections/experiences/vertical-line.html" $index }}
  17. {{ partial "sections/experiences/experience-info.html" $experience }}
  18. </div>
  19. {{else}}
  20. <div class="row align-items-center justify-content-end d-flex">
  21. {{ partial "sections/experiences/experience-info.html" $experience }}
  22. {{ partial "sections/experiences/vertical-line.html" $index }}
  23. </div>
  24. {{ end }}
  25. {{ if lt $index (sub $totalExperiences 1) }}
  26. {{ partial "sections/experiences/horizontal-line.html" $index }}
  27. {{ end }}
  28. {{ end }}
  29. </div>
  30. </div>