experiences.html 1.0 KB

12345678910111213141516171819202122232425
  1. <div class="container-fluid experiences bg-white anchor" id="experiences">
  2. <h1 class="text-center">Experiences</h1>
  3. <div class="container timeline text-justify">
  4. {{ $total:= len .Site.Data.experiences.experiences }}
  5. {{ range $idx,$val:= .Site.Data.experiences.experiences }}
  6. {{ if eq (mod $idx 2) 0 }}
  7. <div class="row align-items-center d-flex">
  8. {{ partial "experiences/left-v-line.html" $idx }}
  9. {{ partial "experiences/experience-info.html" $val }}
  10. </div>
  11. {{ if lt $idx (sub $total 1) }}
  12. {{ partial "experiences/left-to-right-h-line.html" $idx }}
  13. {{ end }}
  14. {{else}}
  15. <div class="row align-items-center justify-content-end d-flex">
  16. {{ partial "experiences/experience-info.html" $val }}
  17. {{ partial "experiences/right-v-line.html" $idx }}
  18. </div>
  19. {{ if lt $idx (sub $total 1) }}
  20. {{ partial "experiences/right-to-left-h-line.html" $idx }}
  21. {{ end }}
  22. {{ end }}
  23. {{ end }}
  24. </div>
  25. </div>