Skip to content

Commit

Permalink
2024-02-09 05:44:09
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiKimera committed Feb 9, 2024
1 parent cfe4a72 commit e5d6ec5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/shortcodes/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down

0 comments on commit e5d6ec5

Please sign in to comment.