Compare commits

...

3 Commits

5 changed files with 18 additions and 2 deletions

View File

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

View File

@@ -1,10 +1,12 @@
{{ with .Params.categories }} {{ with .Params.categories }}
<p> <p>
<img style="display: inline-block; vertical-align: middle; margin-right: 4px;" <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 . -}} {{ range . -}}
{{ if (not (eq . "pinned")) }}
<span class="tag"><a href="{{ "categories/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span> <span class="tag"><a href="{{ "categories/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span>
{{ end }}
{{ end }} {{ end }}
</p> </p>
{{ end }} {{ end }}

View File

@@ -4,7 +4,9 @@
src="/feathericons/16px-a9a9b3/tv.svg" alt="Series:" src="/feathericons/16px-a9a9b3/tv.svg" alt="Series:"
> >
{{ range . -}} {{ range . -}}
{{ if (not (eq . "pinned")) }}
<span class="tag"><a href="{{ "series/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span> <span class="tag"><a href="{{ "series/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span>
{{ end }}
{{ end }} {{ end }}
</p> </p>
{{ end }} {{ end }}

View File

@@ -1,10 +1,12 @@
{{ with .Params.tags }} {{ with .Params.tags }}
<p> <p>
<img style="display: inline-block; vertical-align: middle; margin-right: 4px;" <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 . -}} {{ range . -}}
{{ if (not (eq . "pinned")) }}
<span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span> <span class="tag"><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}/">{{.}}</a></span>
{{ end }}
{{ end }} {{ end }}
</p> </p>
{{ end }} {{ end }}

View File

@@ -67,6 +67,11 @@
<hr /> <hr />
<div class="post-info"> <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 "tags.html" . }}
{{ partial "series.html" . }} {{ partial "series.html" . }}
{{ partial "categories.html" . }} {{ partial "categories.html" . }}