about.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {{ $ := .root }}
  2. {{ $page := .page }}
  3. <!-- About widget -->
  4. <div class="row" itemprop="author" itemscope itemtype="http://schema.org/Person" itemref="{{ if $.Site.Params.email }}person-email{{ end }}{{ if $.Site.Params.phone }} person-telephone{{ end }}{{ if $.Site.Params.address}} person-address{{ end }}">
  5. <div class="col-12 col-lg-4">
  6. <div id="profile">
  7. {{ if $.Site.Params.gravatar }}
  8. <img class="portrait" src="https://s.gravatar.com/avatar/{{ md5 $.Site.Params.email }}?s=200')" itemprop="image">
  9. {{ else if $.Site.Params.avatar }}
  10. <img class="portrait" src="{{ (printf "img/%s" $.Site.Params.avatar) | relURL }}" itemprop="image">
  11. {{ end }}
  12. <div class="portrait-title">
  13. <h2 itemprop="name">{{ $.Site.Params.name }}</h2>
  14. {{ with $.Site.Params.role }}<h3 itemprop="jobTitle">{{ . }}</h3>{{ end }}
  15. {{/* Support legacy `organization` option. */}}
  16. {{ if $.Site.Params.organization }}
  17. <h3 itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
  18. {{ with $.Site.Params.organization_url }}<a href="{{ . }}" target="_blank" itemprop="url" rel="noopener">{{ end }}
  19. <span itemprop="name">{{ $.Site.Params.organization }}</span>
  20. {{ if $.Site.Params.organization_url }}</a>{{ end }}
  21. </h3>
  22. {{ end }}
  23. {{ range $.Site.Params.organizations }}
  24. <h3 itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
  25. {{ with .url }}<a href="{{ . }}" target="_blank" itemprop="url" rel="noopener">{{ end }}
  26. <span itemprop="name">{{ .name }}</span>
  27. {{ if .url }}</a>{{ end }}
  28. </h3>
  29. {{ end }}
  30. </div>
  31. <link itemprop="url" href="{{ $.Site.BaseURL }}">
  32. <ul class="network-icon" aria-hidden="true">
  33. {{ range $.Site.Params.social }}
  34. {{ $pack := or .icon_pack "fas" }}
  35. {{ $pack_prefix := $pack }}
  36. {{ if in (slice "fab" "fas" "far" "fal") $pack }}
  37. {{ $pack_prefix = "fa" }}
  38. {{ end }}
  39. <li>
  40. <a itemprop="sameAs" href="{{ .link | safeURL }}" target="_blank" rel="noopener">
  41. <i class="{{ $pack }} {{ $pack_prefix }}-{{ .icon }} big-icon"></i>
  42. </a>
  43. </li>
  44. {{ end }}
  45. </ul>
  46. </div>
  47. </div>
  48. <div class="col-12 col-lg-8" itemprop="description">
  49. {{ $page.Content }}
  50. <div class="row">
  51. {{ with $page.Params.interests }}
  52. <div class="col-md-5">
  53. <h3>{{ i18n "interests" | markdownify }}</h3>
  54. <ul class="ul-interests">
  55. {{ range .interests }}
  56. <li>{{ . | markdownify }}</li>
  57. {{ end }}
  58. </ul>
  59. </div>
  60. {{ end }}
  61. {{ with $page.Params.education }}
  62. <div class="col-md-7">
  63. <h3>{{ i18n "education" | markdownify }}</h3>
  64. <ul class="ul-edu fa-ul">
  65. {{ range .courses }}
  66. <li>
  67. <i class="fa-li fas fa-graduation-cap"></i>
  68. <div class="description">
  69. <p class="course">{{ .course }}{{ with .year }}, {{ . }}{{ end }}</p>
  70. <p class="institution">{{ .institution }}</p>
  71. </div>
  72. </li>
  73. {{ end }}
  74. </ul>
  75. </div>
  76. {{ end }}
  77. </div>
  78. </div>
  79. </div>