mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Stop "public" from showing up in bookmark tags
This commit is contained in:
parent
12a6c098f7
commit
1bff1052de
1 changed files with 8 additions and 2 deletions
|
@ -21,8 +21,14 @@
|
||||||
<p>
|
<p>
|
||||||
Bookmarked on: <time class="dt-published published" itemprop="datePublished" datetime="{{ dateFormat "2006-01-02 15:04:05Z07:00" $timestamp }}" title="{{ dateFormat "2006-01-02 15:04:05Z07:00" $timestamp }}">{{ dateFormat "2006-01-02 15:04" $timestamp }}</time>
|
Bookmarked on: <time class="dt-published published" itemprop="datePublished" datetime="{{ dateFormat "2006-01-02 15:04:05Z07:00" $timestamp }}" title="{{ dateFormat "2006-01-02 15:04:05Z07:00" $timestamp }}">{{ dateFormat "2006-01-02 15:04" $timestamp }}</time>
|
||||||
<br>Tags: <span itemprop="keywords">
|
<br>Tags: <span itemprop="keywords">
|
||||||
{{ printf "<span class=\"p-category\">%s</span>" (index $tags 1) | safeHTML }}
|
{{- $start := 2 -}}
|
||||||
{{- range after 2 $tags -}}
|
{{- $firstTag := (index $tags 1) -}}
|
||||||
|
{{- if (eq $firstTag "public") -}}
|
||||||
|
{{- $firstTag = (index $tags 2) -}}
|
||||||
|
{{- $start = 3 -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- printf "<span class=\"p-category\">%s</span>" $firstTag | safeHTML -}}
|
||||||
|
{{- range after $start $tags -}}
|
||||||
{{- $tag := . -}}
|
{{- $tag := . -}}
|
||||||
{{- if (ne $tag "public") -}}
|
{{- if (ne $tag "public") -}}
|
||||||
{{- printf ", <span class=\"p-category\">%s</span>" $tag | safeHTML -}}
|
{{- printf ", <span class=\"p-category\">%s</span>" $tag | safeHTML -}}
|
||||||
|
|
Loading…
Reference in a new issue