mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 19:15:16 +02:00
1) Only show Interests / Education if the respective variables are set. 2) Improve SEO
This commit is contained in:
parent
a7e7c07d50
commit
7d3269bee4
1 changed files with 9 additions and 8 deletions
|
@ -1,18 +1,16 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
|
|
||||||
<div id="profile">
|
<div id="profile">
|
||||||
|
|
||||||
<div class="portrait"></div>
|
<div class="portrait"></div>
|
||||||
<div class="portrait-title">
|
|
||||||
|
|
||||||
<h2>{{ .Site.Params.name }}</h2>
|
|
||||||
<h3>{{ .Site.Params.role }}</h3>
|
|
||||||
<h3>{{ .Site.Params.organization }}</h3>
|
|
||||||
|
|
||||||
|
<div class="portrait-title" itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||||
|
<h2 itemprop="name">{{ .Site.Params.name }}</h2>
|
||||||
|
<h3 itemprop="jobTitle">{{ .Site.Params.role }}</h3>
|
||||||
|
<h3 itemprop="worksFor">{{ .Site.Params.organization }}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="list-inline social-icon">
|
<ul class="list-inline social-icon">
|
||||||
|
|
||||||
{{ range .Site.Params.social }}
|
{{ range .Site.Params.social }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .link }}">
|
<a href="{{ .link }}">
|
||||||
|
@ -24,7 +22,6 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,6 +35,7 @@
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
|
{{ if isset .Site.Params "interests" }}
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<h3>Interests</h3>
|
<h3>Interests</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -46,7 +44,9 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{ if isset .Site.Params "education" }}
|
||||||
<div class="col-md-7">
|
<div class="col-md-7">
|
||||||
<h3>Education</h3>
|
<h3>Education</h3>
|
||||||
<ul class="ul-edu fa-ul">
|
<ul class="ul-edu fa-ul">
|
||||||
|
@ -61,6 +61,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue