accomplishments.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {{ $ := .root }}
  2. {{ $page := .page }}
  3. <!-- Accomplishments widget -->
  4. <div class="row">
  5. <div class="col-12 col-lg-4 section-heading">
  6. <h1>{{ with $page.Title }}{{ . | markdownify }}{{ end }}</h1>
  7. {{ with $page.Params.subtitle }}<p>{{ . | markdownify }}</p>{{ end }}
  8. </div>
  9. <div class="col-12 col-lg-8">
  10. {{ with $page.Content }}{{ . }}{{ end }}
  11. {{ if $page.Params.item }}
  12. {{ range $idx, $key := sort $page.Params.item ".date_start" "desc" }}
  13. <div class="card experience course">
  14. <div class="card-body">
  15. {{- with .url -}}<a href="{{.}}" target="_blank" rel="noopener">{{- end -}}
  16. <h4 class="card-title exp-title text-muted my-0">{{.title | markdownify | emojify}}</h4>
  17. {{- with .url -}}</a>{{- end -}}
  18. <div class="card-subtitle my-0 article-metadata">
  19. {{- with .organization_url}}<a href="{{.}}" target="_blank" rel="noopener">{{end -}}
  20. {{- .organization | markdownify | emojify -}}
  21. {{- with .organization_url}}</a>{{end -}}
  22. <span class="middot-divider"></span>
  23. {{ (time .date_start).Format ($page.Params.date_format | default "Jan 2006") }}
  24. {{ if .date_end}}
  25. – {{ (time .date_end).Format ($page.Params.date_format | default "Jan 2006") }}
  26. {{end}}
  27. </div>
  28. {{with .description}}
  29. <div class="card-text">{{. | markdownify | emojify}}</div>
  30. {{end}}
  31. {{ with .certificate_url }}
  32. <a class="card-link" href="{{.}}" target="_blank" rel="noopener">
  33. {{ i18n "see_certificate" | default "See certificate" }}
  34. </a>
  35. {{ end }}
  36. </div>
  37. </div>
  38. {{end}}
  39. {{end}}
  40. </div>
  41. </div>