feat(tailwind): port blog TOC sidebar

This commit is contained in:
George Cushen committed 2023-12-17 13:04:28 +00:00
1 parent de03f3f22d
commit b45980e210
1 file changed
+4 -2
@@ -16,8 +16,10 @@
</h1>
<div class="mt-4 mb-16 text-gray-500 dark:text-gray-300 text-sm flex items-center flex-wrap gap-y-2">
{{- if .Date | and (not .Params.hide_date) }}<span class="mr-1">{{- .Date | time.Format (site.Params.locale.date_format | default ":date_long") -}}</span>{{ end -}}
{{ if and .Date .Params.authors }}<span class="mx-1">·</span>{{ end -}}
{{- if .Date | and (not .Params.hide_date) -}}
<span class="mr-1">{{- .Date | time.Format (site.Params.locale.date_format | default ":date_long") -}}</span>
{{- if .Params.authors }}<span class="mx-1">·</span>{{ end -}}
{{- end -}}
{{ $taxonomy := "authors" }}
{{ range $i, $author_obj := (.GetTerms $taxonomy) }}