Merge pull request #73 from esemeniuc/master

add avatar description support
This commit is contained in:
Kazuki Koide 2020-03-27 17:58:15 +09:00 committed by GitHub
commit 82fbc5f92a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View file

@ -13,6 +13,7 @@ hasCJKLanguage = true
[params]
author = "Your Name"
avatar = "avatar.jpg"
# avatarDescription = "My avatar description"
favicon = "favicon.ico"
description = """
Please write anything here.

View file

@ -7,7 +7,7 @@
<header>
<!-- avator -->
<div class="avatar">
<img class="avatarMask" src="/img/{{ .Site.Params.avatar }}" alt="avatar">
<img class="avatarMask" src="/img/{{ .Site.Params.avatar }}" alt="{{ .Site.Params.avatarDescription }}">
<img src="/img/avatar-border.svg" class="avatar-border" alt="avatar-border">
</div>
<!-- author -->

View file

@ -1,7 +1,7 @@
<header>
<!-- avator -->
<div class="avatar">
<img class="avatarMask" src="{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}">
<img class="avatarMask" src="{{ .Site.BaseURL }}/img/{{ .Site.Params.avatar }}" alt="{{ .Site.Params.avatarDescription }}">
<a href="{{ .Site.BaseURL }}"><img class="avatar-border" src="{{ .Site.BaseURL }}/img/avatar-border.svg"></a>
</div>
<!-- author -->