Skip to content

Commit

Permalink
feat(tailwind): port blog TOC sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
gcushen committed Dec 17, 2023
1 parent de03f3f commit b45980e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/blox-tailwind/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ <h1 class="mt-2 text-4xl font-bold tracking-tight text-slate-900 dark:text-slate
</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) }}
Expand Down

0 comments on commit b45980e

Please sign in to comment.