mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-24 09:06:30 -05:00
add avatar description support
This commit is contained in:
parent
1d03f2ea43
commit
b7046caefc
3 changed files with 3 additions and 2 deletions
|
@ -13,6 +13,7 @@ hasCJKLanguage = true
|
||||||
[params]
|
[params]
|
||||||
author = "Your Name"
|
author = "Your Name"
|
||||||
avatar = "avatar.jpg"
|
avatar = "avatar.jpg"
|
||||||
|
# avatarDescription = "My avatar description"
|
||||||
favicon = "favicon.ico"
|
favicon = "favicon.ico"
|
||||||
description = """
|
description = """
|
||||||
Please write anything here.
|
Please write anything here.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<header>
|
<header>
|
||||||
<!-- avator -->
|
<!-- avator -->
|
||||||
<div class="avatar">
|
<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">
|
<img src="/img/avatar-border.svg" class="avatar-border" alt="avatar-border">
|
||||||
</div>
|
</div>
|
||||||
<!-- author -->
|
<!-- author -->
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<header>
|
<header>
|
||||||
<!-- avator -->
|
<!-- avator -->
|
||||||
<div class="avatar">
|
<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>
|
<a href="{{ .Site.BaseURL }}"><img class="avatar-border" src="{{ .Site.BaseURL }}/img/avatar-border.svg"></a>
|
||||||
</div>
|
</div>
|
||||||
<!-- author -->
|
<!-- author -->
|
||||||
|
|
Loading…
Reference in a new issue