BUGFIX: icon cannot show in section page

This commit is contained in:
FarseaSH 2024-01-07 20:47:13 +08:00
parent 4699aca63c
commit 9462ce49d8

View file

@ -1,6 +1,5 @@
{{ $page := .page }} {{ $page := .page }}
{{ $index := .index }} {{ $index := .index }}
{{ $site := .site }}
<div class="moment-row"> <div class="moment-row">
<div class="pure-g"> <div class="pure-g">
@ -30,7 +29,7 @@
<img src='{{ . }}' class="avatar"> <img src='{{ . }}' class="avatar">
{{ else }} {{ else }}
{{/* fixme check whether the default avatar path is url or not--> */}} {{/* fixme check whether the default avatar path is url or not--> */}}
<img src='{{ $site.BaseURL }}/{{ $page.Site.Params.avatar }}' class="avatar"> <img src='{{ $page.Site.BaseURL }}/{{ $page.Site.Params.avatar }}' class="avatar">
{{ end }} {{ end }}
</div> </div>
<div class="intro"> <div class="intro">
@ -134,7 +133,7 @@
{{ with $page.Params.link }} {{ with $page.Params.link }}
{{ partial "link-block.html" (dict "logo" $link_logo "a" $link_link "word" $link_text "baseurl" {{ partial "link-block.html" (dict "logo" $link_logo "a" $link_link "word" $link_text "baseurl"
$.Site.BaseURL)}} $page.Site.BaseURL)}}
{{ end }} {{ end }}
{{/* Note info shown below the main content */}} {{/* Note info shown below the main content */}}