positions.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <div class="col-10 col-lg-8">
  2. <div class="experience-entry-heading">
  3. {{ $logoImage:= resources.Get .company.logo}}
  4. {{ if $logoImage }}
  5. <div class="logo-holder">
  6. <img class="company-logo" src="{{ $logoImage.RelPermalink }}" alt="{{ .name }}" />
  7. </div>
  8. {{ end }}
  9. <!-- Total experience duration on a company is time between the starting date of the oldest position and ending date of most recent position -->
  10. {{ $oldestPosition := index (last 1 .positions) 0}}
  11. {{ $mostRecentPosition := index (first 1 .positions) 0}}
  12. <div class="company-heading">
  13. <h5>{{ if .company.url }}<a href={{.company.url}} title="{{ .company.name }}" target="_blank" rel="noopener">{{ .company.name }}</a>{{ else }}{{ .company.name }}{{ end }}</h5>
  14. <p class="text-muted">
  15. {{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}{{ i18n "present" }}{{ end }}
  16. </p>
  17. </div>
  18. <p class="text-muted">
  19. <i class="fa-solid fa-location-dot"></i> {{ .company.location }}
  20. </p>
  21. <!-- Add company overview -->
  22. <p>{{ .company.overview | markdownify }}</p>
  23. </div>
  24. <!-- Add the positions information -->
  25. <div class="positions">
  26. {{ range $index,$position:= .positions }}
  27. <div class="company-heading">
  28. <h5 class="designation">{{ $position.designation }}</h5>
  29. <p class="text-muted">{{ $position.start }} - {{if $position.end }} {{ $position.end }} {{else}} {{ i18n "present" }} {{end}}</p>
  30. </div>
  31. <!-- Add the responsibilities handled at this position -->
  32. {{ if $position.responsibilities }}
  33. <h6 class="text-heading">{{ i18n "responsibilities" }}</h6>
  34. <ul class="justify-content-around">
  35. {{ range $position.responsibilities }}
  36. <li>{{ . | markdownify }}</li>
  37. {{ end }}
  38. </ul>
  39. {{ end }}
  40. {{ end }}
  41. </div>
  42. </div>