mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-14 00:16:31 +00:00
about widget: Refactor avatar (#683)
This commit is contained in:
1 parent
02d84dff98
commit
a86e35245e
2 files changed
+3
-6
No files matched your search
@@ -519,12 +519,11 @@ a[data-fancybox] img {
|
||||
}
|
||||
|
||||
#profile .portrait {
|
||||
background-image: url('../img/portrait.jpg');
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
margin: 0 auto;
|
||||
border-radius: 50%;
|
||||
background-size: cover;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
#profile .portrait-title h2 {
|
||||
|
||||
@@ -7,11 +7,9 @@
|
||||
<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">
|
||||
<img class="portrait" src="https://s.gravatar.com/avatar/{{ md5 $.Site.Params.email }}?s=200')" itemprop="image">
|
||||
{{ 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 }}">
|
||||
<img class="portrait" src="{{ (printf "img/%s" $.Site.Params.avatar) | relURL }}" itemprop="image">
|
||||
{{ end }}
|
||||
|
||||
<div class="portrait-title">
|
||||
|
||||
Reference in new issue
Block a user