Add a paperclip icon for pinned articles.
This commit is contained in:
@@ -20,6 +20,11 @@
|
|||||||
<li class="post-item">
|
<li class="post-item">
|
||||||
<a href="{{.Permalink}}" class="post-item-inner">
|
<a href="{{.Permalink}}" class="post-item-inner">
|
||||||
<span class="post-title">
|
<span class="post-title">
|
||||||
|
{{ if .Params.pinned }}
|
||||||
|
<img style="display: inline-block; vertical-align: middle; margin-right: 4px;"
|
||||||
|
src="/feathericons/16px-a9a9b3/paperclip.svg" alt="Pinned:"
|
||||||
|
>
|
||||||
|
{{ end }}
|
||||||
{{ if .Params.tags }}{{ index .Params.tags 0 | title }}:{{ end }}
|
{{ if .Params.tags }}{{ index .Params.tags 0 | title }}:{{ end }}
|
||||||
{{ .Title }}{{ if and (.Params.subtitle) (and (.Params.author) (.Params.date)) }}
|
{{ .Title }}{{ if and (.Params.subtitle) (and (.Params.author) (.Params.date)) }}
|
||||||
{{ "--" | markdownify }} {{ .Params.subtitle}}
|
{{ "--" | markdownify }} {{ .Params.subtitle}}
|
||||||
|
|||||||
Reference in New Issue
Block a user