Compare commits
3 Commits
927613629f
...
af0fe569a3
| Author | SHA1 | Date | |
|---|---|---|---|
| af0fe569a3 | |||
| 1543c5602f | |||
| a10daf86fd |
@@ -20,6 +20,11 @@
|
||||
<li class="post-item">
|
||||
<a href="{{.Permalink}}" class="post-item-inner">
|
||||
<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 }}
|
||||
{{ .Title }}{{ if and (.Params.subtitle) (and (.Params.author) (.Params.date)) }}
|
||||
{{ "--" | markdownify }} {{ .Params.subtitle}}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
{{ with .Params.categories }}
|
||||
<p>
|
||||
<img style="display: inline-block; vertical-align: middle; margin-right: 4px;"
|
||||
src="/feathericons/16px-a9a9b3/folder.svg" alt="Series:"
|
||||
src="/feathericons/16px-a9a9b3/folder.svg" alt="Categories:"
|
||||
>
|
||||
{{ range . -}}
|
||||
{{ if (not (eq . "pinned")) }}
|
||||
<span class="tag"><a href="{{ "categories/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
src="/feathericons/16px-a9a9b3/tv.svg" alt="Series:"
|
||||
>
|
||||
{{ range . -}}
|
||||
{{ if (not (eq . "pinned")) }}
|
||||
<span class="tag"><a href="{{ "series/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
{{ with .Params.tags }}
|
||||
<p>
|
||||
<img style="display: inline-block; vertical-align: middle; margin-right: 4px;"
|
||||
src="/feathericons/16px-a9a9b3/tag.svg" alt="Series:"
|
||||
src="/feathericons/16px-a9a9b3/tag.svg" alt="Tags:"
|
||||
>
|
||||
{{ range . -}}
|
||||
{{ if (not (eq . "pinned")) }}
|
||||
<span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
@@ -67,6 +67,11 @@
|
||||
<hr />
|
||||
|
||||
<div class="post-info">
|
||||
{{ if .Params.pinned }}
|
||||
<img style="display: inline-block; vertical-align: middle; margin-right: 4px;"
|
||||
src="/feathericons/16px-a9a9b3/paperclip.svg" alt="Pinned:"
|
||||
> <a href="/categories/pinned">This article is pinned.</a>
|
||||
{{ end }}
|
||||
{{ partial "tags.html" . }}
|
||||
{{ partial "series.html" . }}
|
||||
{{ partial "categories.html" . }}
|
||||
|
||||
Reference in New Issue
Block a user