summary: normalize summary.png path

This commit is contained in:
liushuyu 2021-01-12 21:12:58 -07:00
parent 2ec9c0a702
commit 593a1003f2
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437

View File

@ -15,7 +15,7 @@
</div>
{{ else }}
{{ $author := index .Site.Data.authors ( .Params.author | default "" ) }}
<div class="mb-md blog-entry-header summary entry" style="background-image: url('/{{ .Dir }}/summary.png')" data-href="{{ .Permalink }}">
<div class="mb-md blog-entry-header summary entry" style="background-image: url('/{{ path.Join .File.Dir "summary.png" }}')" data-href="{{ .Permalink }}">
<div class="px-md">
<span class="title">{{ .Title }}</span>
</div>