Merge pull request #13 from fu-sen/patch-1

fix issue #12
This commit is contained in:
MeiK
2019-12-10 14:27:27 +08:00
committed by GitHub

View File

@@ -4,17 +4,20 @@
</div> </div>
<div class="clearfix mb-2"> <div class="clearfix mb-2">
<div class="float-left col-3 col-md-12 pr-3 pr-md-0"> <div class="float-left col-3 col-md-12 pr-3 pr-md-0">
{{ with $.Site.Params.avatar }}
<a itemprop="image" class="u-photo d-block position-relative" aria-hidden="true" <a itemprop="image" class="u-photo d-block position-relative" aria-hidden="true"
href="{{ "images/avatar.png" | absURL }}"> href="{{ $.Site.Params.avatar }}">
{{ with $.Site.Params.avatar }}
<img alt="" width="260" height="260" <img alt="" width="260" height="260"
class="avatar width-full height-full rounded-2" src="{{ $.Site.Params.avatar }}" /> class="avatar width-full height-full rounded-2" src="{{ $.Site.Params.avatar }}" />
{{ else }} </a>
{{ else }}
<a itemprop="image" class="u-photo d-block position-relative" aria-hidden="true"
href="{{ "images/avatar.png" | absURL }}">
<img alt="" width="260" height="260" <img alt="" width="260" height="260"
class="avatar width-full height-full rounded-2" src="{{ "images/avatar.png" | absURL }}" /> class="avatar width-full height-full rounded-2" src="{{ "images/avatar.png" | absURL }}" />
{{ end }}
</a> </a>
{{ end }}
</div> </div>
<div class="float-left col-9 col-md-12 pl-2 pl-md-0"> <div class="float-left col-9 col-md-12 pl-2 pl-md-0">