mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 10:04:04 +00:00
fix post page avatar
This commit is contained in:
@@ -5,8 +5,16 @@
|
|||||||
<div class="repohead-details-container clearfix container-lg p-responsive d-none d-lg-block">
|
<div class="repohead-details-container clearfix container-lg p-responsive d-none d-lg-block">
|
||||||
<div class="mb-3 d-flex">
|
<div class="mb-3 d-flex">
|
||||||
<h1 class="public css-truncate float-none flex-auto width-fit pl-0">
|
<h1 class="public css-truncate float-none flex-auto width-fit pl-0">
|
||||||
<a class="avatar mr-1" href="{{ .Site.BaseURL }}about/"><img
|
<a class="avatar mr-1" href="{{ .Site.BaseURL }}about/">
|
||||||
src="{{ "images/avatar.png" | absURL }}" width="26" height="26"></a>
|
{{ with $.Site.Params.avatar }}
|
||||||
|
|
||||||
|
<img
|
||||||
|
src="{{ $.Site.Params.avatar }}" width="26" height="26">
|
||||||
|
{{ else }}
|
||||||
|
<img
|
||||||
|
src="{{ "images/avatar.png" | absURL }}" width="26" height="26">
|
||||||
|
{{ end }}
|
||||||
|
</a>
|
||||||
<span class="author"><a
|
<span class="author"><a
|
||||||
href="{{ .Site.BaseURL }}">{{ .Site.Params.author }}</a></span>
|
href="{{ .Site.BaseURL }}">{{ .Site.Params.author }}</a></span>
|
||||||
<span class="path-divider">/</span>
|
<span class="path-divider">/</span>
|
||||||
|
Reference in New Issue
Block a user