fix the url issue for link logo

This commit is contained in:
FarseaSH 2021-08-05 18:26:10 +08:00
parent 4f5b65561d
commit ddf60d30ca
2 changed files with 5 additions and 3 deletions

View file

@ -2,7 +2,7 @@
<table class="link-table">
<tr>
<td>
<img src="{{ $.Site.BaseURL }}\link-logos\default_link_logo.png" class="link-logo">
<img src="{{ .baseurl }}\link-logos\default_link_logo.png" class="link-logo">
</td>
<td style="padding-left: 20px">
<a href="{{ .a }}">{{.word}}</a>

View file

@ -63,12 +63,14 @@
{{ partial "pic_set.html" (dict "pic_set" .) }}
{{ end }}
<!-- todo format the name of this part -->
<!-- add-on info 3: link -->
{{ $link_link := .Params.link }}
{{ $link_logo := .Params.link_logo }}
{{ $link_text := .Params.link_text }}
{{ with .Params.link }}
{{ partial "link-block.html" (dict "logo" $link_logo "a" $link_link "word" $link_text)}}
{{ partial "link-block.html" (dict "logo" $link_logo "a" $link_link "word" $link_text "baseurl" $.Site.BaseURL)}}
{{ end }}
<!-- 附注信息 -->