Compare commits

..

3 Commits

5 changed files with 18 additions and 2 deletions

View File

@@ -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}}

View File

@@ -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 }}

View File

@@ -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 }}

View File

@@ -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 }}

View File

@@ -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" . }}