2024-02-09 05:44:09

This commit is contained in:
Kai Kimera 2024-02-09 08:44:09 +03:00
parent cfe4a72f4f
commit e5d6ec54b1
Signed by untrusted user: KaiKimera
GPG key ID: 2C3384BCFF16E5D4

View file

@ -15,11 +15,11 @@
{{- $cat := (site.GetPage (printf "categories/%s" ($text))) -}}
{{- if ($tag) -}}
<a href="{{ ($tag.RelPermalink) }}" target="_blank">#{{ ($text) }}</a>
<span class="shortcode shortcode-{{ ($.Name) }}"><a href="{{ ($tag.RelPermalink) }}" target="_blank">#{{ ($text) }}</a></span>
{{- else if ($cat) -}}
<a href="{{ ($cat.RelPermalink) }}" target="_blank">#{{ ($text) }}</a>
<span class="shortcode shortcode-{{ ($.Name) }}"><a href="{{ ($cat.RelPermalink) }}" target="_blank">#{{ ($text) }}</a></span>
{{- else -}}
{{- ($text) -}}
<span class="shortcode shortcode-{{ ($.Name) }}">{{- ($text) -}}</span>
{{- end -}}
{{- else -}}