fix: only mark weight: 1 as sticky posts (#95)

This commit is contained in:
Robert Kaussow 2021-09-23 10:50:42 +02:00 committed by GitHub
parent 96a9792f5b
commit 09639006d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@
<span class="gblog-post__tag">{{ .ReadingTime }} min read</span>
</span>
{{ if .Params.weight }}
{{ if eq .Params.weight 1 }}
<span class="no-wrap">
<svg class="icon gblog_pin"><use xlink:href="#gblog_pin"></use></svg>
<span class="gblog-post__tag">Pinned</span>