multiple-positions.html 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <div class="col-10 col-lg-8">
  2. <div class="experience-entry-heading">
  3. <!-- For multiple positions, give emphasis on the company name-->
  4. <h5>{{ if .company.url }}<a href={{.company.url}}>{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h5>
  5. <!-- Total experience duration on a company is time between the starting date of the oldest position and ending date of most recent position -->
  6. {{ $oldestPosition := index (last 1 .positions) 0}}
  7. {{ $mostRecentPosition := index (first 1 .positions) 0}}
  8. <p class="text-muted">
  9. {{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}{{ i18n "present" }}{{ end }},
  10. {{ .company.location }}
  11. </p>
  12. <!-- Add company overview -->
  13. <p>{{ .company.overview | markdownify }}</p>
  14. </div>
  15. <!-- Add the positions information -->
  16. <div class="positions">
  17. {{ range $index,$position:= .positions }}
  18. <h6 class="designation">{{ $position.designation }}</h6>
  19. <p class="text-muted">{{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} {{ i18n "present" }} {{end}}</p>
  20. <!-- Add the responsibilities handled at this position -->
  21. <ul class="justify-content-around">
  22. {{ range $position.responsibilities }}
  23. <li>{{ . | markdownify }}</li>
  24. {{ end }}
  25. </ul>
  26. {{ end }}
  27. </div>
  28. </div>