🎨 Use more standard parameter name which call avatar in flinks page.

This commit is contained in:
凡梦星尘 2022-08-07 16:59:38 +08:00
parent 30d161b1e2
commit aa8a60d852
2 changed files with 5 additions and 5 deletions

View File

@ -6,17 +6,17 @@
FLinksList:
- name: Hugo
desc: 世界上最快的网站建设框架!
image: https://gohugo.io/favicon-32x32.png
avatar: https://gohugo.io/favicon-32x32.png
link: https://gohugo.io
- name: Hugo-NexT
desc: Hugo NexT 官方预览网站。
image: https://hugo-next.eu.org/imgs/hugo_next_avatar.png
avatar: https://hugo-next.eu.org/imgs/hugo_next_avatar.png
link: https://hugo-next.eu.org
- name: 凡梦星尘空间站
desc: 再平凡的人也有属于他的梦想!
image: https://lisenhui.cn/img/avatar.png
avatar: https://lisenhui.cn/img/avatar.png
link: https://lisenhui.cn
@ -25,5 +25,5 @@
FLinksList:
- name: 阿哈吉
desc: 全网首个 Hugo NexT 忠实粉丝用户
image: https://a.happy2008.top/imgs/stayhome-small.png
avatar: https://a.happy2008.top/imgs/stayhome-small.png
link: https://a.happy2008.top/

View File

@ -15,7 +15,7 @@
<div class="flinks-list-item">
<a href="{{ .link }}" rel="external nofollow noreferrer" title=" {{ .name }}" target="_blank">
<div class="flinks-item-icon">
<img class="no-lightbox entered loaded" src="{{ .image }}" alt="{{ .name }}"/>
<img class="no-lightbox entered loaded" src="{{ .avatar }}" alt="{{ .name }}"/>
</div>
<div class="flinks-item-name">{{ .name | safeHTML }}</div>
<div class="flinks-item-desc" title="{{ .desc }}">{{ .desc | safeHTML }}</div>