mirror of
https://github.com/gcushen/hugo-academic.git
synced 2025-07-26 03:00:50 +02:00
about.html: Make avatar chooseable and use relURL (#47)
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
This commit is contained in:
parent
db9dcf6055
commit
7763b7dcba
1 changed files with 3 additions and 1 deletions
|
@ -9,9 +9,11 @@
|
|||
<div class="col-xs-12 col-md-4">
|
||||
<div id="profile">
|
||||
|
||||
{{ with $.Site.Params.avatar }}
|
||||
<div class="portrait" itemprop="image"
|
||||
style="background-image: url('{{ $.Site.BaseURL }}img/{{ $.Site.Params.avatar }}');">
|
||||
style="background-image: url('{{ "/img/" | relURL }}{{ . }}');">
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div class="portrait-title">
|
||||
<h2 itemprop="name">{{ $.Site.Params.name }}</h2>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue