add theme
This commit is contained in:
80
themes/academic/layouts/partials/widgets/about.html
Normal file
80
themes/academic/layouts/partials/widgets/about.html
Normal file
@@ -0,0 +1,80 @@
|
||||
{{ $ := .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-xs-12 col-md-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('{{ $.Site.BaseURL }}img/{{ $.Site.Params.avatar }}');"></div>
|
||||
<meta itemprop="image" content="{{ $.Site.BaseURL }}img/{{ $.Site.Params.avatar }}">
|
||||
{{ end }}
|
||||
|
||||
<div class="portrait-title">
|
||||
<h2 itemprop="name">{{ $.Site.Params.name }}</h2>
|
||||
<h3 itemprop="jobTitle">{{ $.Site.Params.role }}</h3>
|
||||
{{ if $.Site.Params.organization }}
|
||||
<h3 itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
|
||||
{{ with $.Site.Params.organization_url }}<a href="{{ . }}" target="_blank" itemprop="url">{{ end }}
|
||||
<span itemprop="name">{{ $.Site.Params.organization }}</span>
|
||||
{{ if $.Site.Params.organization_url }}</a>{{ end }}
|
||||
</h3>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<link itemprop="url" href="{{ $.Site.BaseURL }}">
|
||||
|
||||
<ul class="social-icon" aria-hidden="true">
|
||||
{{ range $.Site.Params.social }}
|
||||
{{ $pack := or .icon_pack "fa" }}
|
||||
<li>
|
||||
<a itemprop="sameAs" href="{{ .link | safeURL }}" target="_blank">
|
||||
<i class="{{ $pack }} {{ $pack }}-{{ .icon }} big-icon"></i>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-md-8" itemprop="description">
|
||||
|
||||
{{ $page.Content }}
|
||||
|
||||
<div class="row">
|
||||
|
||||
{{ with $page.Params.interests }}
|
||||
<div class="col-sm-5">
|
||||
<h3>{{ i18n "interests" | markdownify }}</h3>
|
||||
<ul class="ul-interests">
|
||||
{{ range .interests }}
|
||||
<li>{{ . }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ with $page.Params.education }}
|
||||
<div class="col-sm-7">
|
||||
<h3>{{ i18n "education" | markdownify }}</h3>
|
||||
<ul class="ul-edu fa-ul">
|
||||
{{ range .courses }}
|
||||
<li>
|
||||
<i class="fa-li fa 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>
|
||||
Reference in New Issue
Block a user