Skip to content

Commit 1692f2a

Browse files
committed
Hide tags section on no tags
1 parent c5e9a3c commit 1692f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/_partials/toc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
{{- $borderClass := "hx:mt-8 hx:border-t hx:bg-white hx:pt-8 hx:shadow-[0_-12px_16px_white] hx:dark:bg-dark hx:dark:shadow-[0_-12px_16px_#111]" -}}
2222

23-
{{- if site.Params.toc.displayTags -}}
23+
{{- if and site.Params.toc.displayTags .Params.tags -}}
2424
<div class="{{ $borderClass }} hx:sticky hx:bottom-0 hx:flex hx:flex-col hx:items-start hx:gap-2 hx:border-gray-200 hx:dark:border-neutral-800 hx:contrast-more:border-t hx:contrast-more:border-neutral-400 hx:contrast-more:shadow-none hx:contrast-more:dark:border-neutral-400">
2525
<p class="hx:mb-1 hx:font-semibold hx:tracking-tight">{{ $tags }}</p>
2626
{{ partial "tags.html" . }}

0 commit comments

Comments
 (0)