experiences.html 1.0 KB

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