about.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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-xs-12 col-md-4">
  6. <div id="profile">
  7. {{ with $.Site.Params.avatar }}
  8. <div class="portrait" style="background-image: url('{{ $.Site.BaseURL }}img/{{ . }}');">
  9. </div>
  10. <meta itemprop="image" content="{{ $.Site.BaseURL }}img/{{ . }}">
  11. {{ end }}
  12. <div class="portrait-title">
  13. <h2 itemprop="name">{{ $.Site.Params.name }}</h2>
  14. <h3 itemprop="jobTitle">{{ $.Site.Params.role }}</h3>
  15. {{ if $.Site.Params.organization }}
  16. <h3 itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
  17. {{ with $.Site.Params.organization_url }}<a href="{{ . }}" target="_blank" itemprop="url">{{ end }}
  18. <span itemprop="name">{{ $.Site.Params.organization }}</span>
  19. {{ if $.Site.Params.organization_url }}</a>{{ end }}
  20. </h3>
  21. {{ end }}
  22. </div>
  23. <link itemprop="url" href="{{ $.Site.BaseURL }}">
  24. <ul class="social-icon" aria-hidden="true">
  25. {{ range $.Site.Params.social }}
  26. {{ $pack := or .icon_pack "fa" }}
  27. <li>
  28. <a itemprop="sameAs" href="{{ .link | safeURL }}" target="_blank">
  29. <i class="{{ $pack }} {{ $pack }}-{{ .icon }} big-icon"></i>
  30. </a>
  31. </li>
  32. {{ end }}
  33. </ul>
  34. </div>
  35. </div>
  36. <div class="col-xs-12 col-md-8" itemprop="description">
  37. {{ $page.Content }}
  38. <div class="row">
  39. {{ with $page.Params.interests }}
  40. <div class="col-sm-5">
  41. <h3>{{ i18n "interests" | markdownify }}</h3>
  42. <ul class="ul-interests">
  43. {{ range .interests }}
  44. <li>{{ . }}</li>
  45. {{ end }}
  46. </ul>
  47. </div>
  48. {{ end }}
  49. {{ with $page.Params.education }}
  50. <div class="col-sm-7">
  51. <h3>{{ i18n "education" | markdownify }}</h3>
  52. <ul class="ul-edu fa-ul">
  53. {{ range .courses }}
  54. <li>
  55. <i class="fa-li fa fa-graduation-cap"></i>
  56. <div class="description">
  57. <p class="course">{{ .course }}{{ with .year }}, {{ . }}{{ end }}</p>
  58. <p class="institution">{{ .institution }}</p>
  59. </div>
  60. </li>
  61. {{ end }}
  62. </ul>
  63. </div>
  64. {{ end }}
  65. </div>
  66. </div>
  67. </div>