From 475bed99cf218c7e5e18b71a1c830f11b3fc8c01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Guti=C3=A9rrez=20Moreno?= Date: Sun, 6 Nov 2022 13:09:56 +0100 Subject: [PATCH] Update button to add download tag --- layouts/shortcodes/button.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html index c6a4c36b..6ca55e9d 100644 --- a/layouts/shortcodes/button.html +++ b/layouts/shortcodes/button.html @@ -2,6 +2,7 @@ class="!rounded-md bg-primary-600 px-4 py-2 !text-neutral !no-underline hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700" {{ with .Get "href" }}href="{{ . }}"{{ end }} {{ with .Get "target" }}target="{{ . }}"{{ end }} + {{ with .Get "download"}}download="{{ . }}"{{ end }} role="button" > {{ .Inner }}