mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-06 12:12:39 +00:00
95 lines
3.4 KiB
HTML
95 lines
3.4 KiB
HTML
{{ $ := .root }}
|
|
{{ $page := .page }}
|
|
|
|
<!-- About widget -->
|
|
<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 }}">
|
|
<div class="col-12 col-lg-4">
|
|
<div id="profile">
|
|
|
|
{{ if $.Site.Params.gravatar }}
|
|
<div class="portrait" style="background-image: url('https://s.gravatar.com/avatar/{{ md5 $.Site.Params.email }}?s=200');"></div>
|
|
<meta itemprop="image" content="https://s.gravatar.com/avatar/{{ md5 $.Site.Params.email }}?s=200">
|
|
{{ else if $.Site.Params.avatar }}
|
|
<div class="portrait" style="background-image: url('{{ (printf "img/%s" $.Site.Params.avatar) | absURL }}');"></div>
|
|
<meta itemprop="image" content="{{ (printf "img/%s" $.Site.Params.avatar) | absURL }}">
|
|
{{ end }}
|
|
|
|
<div class="portrait-title">
|
|
<h2 itemprop="name">{{ $.Site.Params.name }}</h2>
|
|
{{ with $.Site.Params.role }}<h3 itemprop="jobTitle">{{ . }}</h3>{{ end }}
|
|
|
|
{{/* Support legacy `organization` option. */}}
|
|
{{ if $.Site.Params.organization }}
|
|
<h3 itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
|
|
{{ with $.Site.Params.organization_url }}<a href="{{ . }}" target="_blank" itemprop="url" rel="noopener">{{ end }}
|
|
<span itemprop="name">{{ $.Site.Params.organization }}</span>
|
|
{{ if $.Site.Params.organization_url }}</a>{{ end }}
|
|
</h3>
|
|
{{ end }}
|
|
|
|
{{ range $.Site.Params.organizations }}
|
|
<h3 itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
|
|
{{ with .url }}<a href="{{ . }}" target="_blank" itemprop="url" rel="noopener">{{ end }}
|
|
<span itemprop="name">{{ .name }}</span>
|
|
{{ if .url }}</a>{{ end }}
|
|
</h3>
|
|
{{ end }}
|
|
</div>
|
|
|
|
<link itemprop="url" href="{{ $.Site.BaseURL }}">
|
|
|
|
<ul class="network-icon" aria-hidden="true">
|
|
{{ range $.Site.Params.social }}
|
|
{{ $pack := or .icon_pack "fas" }}
|
|
{{ $pack_prefix := $pack }}
|
|
{{ if in (slice "fab" "fas" "far" "fal") $pack }}
|
|
{{ $pack_prefix = "fa" }}
|
|
{{ end }}
|
|
<li>
|
|
<a itemprop="sameAs" href="{{ .link | safeURL }}" target="_blank" rel="noopener">
|
|
<i class="{{ $pack }} {{ $pack_prefix }}-{{ .icon }} big-icon"></i>
|
|
</a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-lg-8" itemprop="description">
|
|
|
|
{{ $page.Content }}
|
|
|
|
<div class="row">
|
|
|
|
{{ with $page.Params.interests }}
|
|
<div class="col-md-5">
|
|
<h3>{{ i18n "interests" | markdownify }}</h3>
|
|
<ul class="ul-interests">
|
|
{{ range .interests }}
|
|
<li>{{ . | markdownify }}</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ with $page.Params.education }}
|
|
<div class="col-md-7">
|
|
<h3>{{ i18n "education" | markdownify }}</h3>
|
|
<ul class="ul-edu fa-ul">
|
|
{{ range .courses }}
|
|
<li>
|
|
<i class="fa-li fas fa-graduation-cap"></i>
|
|
<div class="description">
|
|
<p class="course">{{ .course }}{{ with .year }}, {{ . }}{{ end }}</p>
|
|
<p class="institution">{{ .institution }}</p>
|
|
</div>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|