summaryrefslogtreecommitdiff
path: root/layouts/_shortcodes
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_shortcodes')
-rw-r--r--layouts/_shortcodes/music.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/layouts/_shortcodes/music.html b/layouts/_shortcodes/music.html
index de144f39..31ec45e8 100644
--- a/layouts/_shortcodes/music.html
+++ b/layouts/_shortcodes/music.html
@@ -16,8 +16,6 @@
</div>
</div>
<!-- Links -->
- {{ $aTagClasses := "block rounded-full px-3 md:p-4 bg-neutral-200/50 dark:bg-neutral-600/50 hover:bg-neutral-200 dark:hover:bg-neutral-600 transition-colors no-underline! text-size-xs inline-flex gap-1 items-center" }}
- {{ $imageClasses := "block w-3 h-3 md:w-5 md:h-5 m-0!" }}
<div class="flex gap-2 items-center">
{{ range $platforms }}
{{ $code := . }}
@@ -25,14 +23,14 @@
{{ $name := T $langcode }}
{{ with $page.Get . }}
<a href="{{ . }}"
- class="{{ $aTagClasses }}"
+ class="block rounded-full px-3 md:p-4 bg-neutral-200/50 dark:bg-neutral-600/50 hover:bg-neutral-200 dark:hover:bg-neutral-600 transition-colors no-underline! text-size-xs inline-flex gap-1 items-center"
target="_blank"
title="{{ T "music.openIn" $name }}"
alt="{{ $name }}"
data-tooltip
>
<img src="{{ printf "/icons/music/%s.png" $code }}"
- loading="lazy" class="{{ $imageClasses }}" />
+ loading="lazy" class="block w-3 h-3 md:w-5 md:h-5 m-0!" />
<span class="md:hidden">{{ $name }}</span>
</a>
{{ end }}