summaryrefslogtreecommitdiffstats
path: root/layouts/partials/sidebar.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/sidebar.html')
-rw-r--r--layouts/partials/sidebar.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 2db058f..483e90b 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -14,16 +14,16 @@
<ul class="space-y-2 text-sm text-text-dim">
<li class="flex items-center gap-2">
- <i data-feather="user" class="w-4 h-4 shrink-0"></i>
+ <i data-feather="user" class="w-4 h-4 shrink-0" aria-hidden="true"></i>
<span>{{ .Site.Params.author }}</span>
</li>
<li class="flex items-center gap-2">
- <i data-feather="file-text" class="w-4 h-4 shrink-0"></i>
+ <i data-feather="file-text" class="w-4 h-4 shrink-0" aria-hidden="true"></i>
<span>{{ .WordCount }} {{ i18n "words" }}</span>
</li>
{{ if .Site.Params.readingTime }}
<li class="flex items-center gap-2">
- <i data-feather="clock" class="w-4 h-4 shrink-0"></i>
+ <i data-feather="clock" class="w-4 h-4 shrink-0" aria-hidden="true"></i>
<span>{{ .ReadingTime }} {{ i18n "min" }} {{ i18n "readingTime" }}</span>
</li>
{{ end }}
@@ -32,10 +32,10 @@
{{ $typeData := index $typeConfig $articleType }}
{{ if and $typeData $articleType }}
<li class="flex items-center gap-2">
- <i data-feather="tag" class="w-4 h-4 shrink-0"></i>
+ <i data-feather="tag" class="w-4 h-4 shrink-0" aria-hidden="true"></i>
<span
- class="inline-flex items-center px-2 py-0.5 rounded text-xs font-mono font-semibold"
- style="background-color: var(--type-{{ $articleType }}); color: var(--type-{{ $articleType }}-text);"
+ class="inline-flex items-center px-2.5 py-1 rounded text-sm font-mono font-semibold whitespace-nowrap transition-all duration-200"
+ style="background-color: var(--type-{{ $articleType }}); border: 1px solid var(--type-{{ $articleType }}); color: var(--type-{{ $articleType }}-text);"
>{{ i18n $articleType }}</span>
</li>
{{ end }}