diff --git a/assets/banner.webp b/assets/banner.webp deleted file mode 100644 index 8bfd087..0000000 Binary files a/assets/banner.webp and /dev/null differ diff --git a/assets/banner2.webp b/assets/banner2.webp deleted file mode 100644 index 071568f..0000000 Binary files a/assets/banner2.webp and /dev/null differ diff --git a/assets/button-dark.png b/assets/button-dark.png deleted file mode 100644 index 6d7c022..0000000 Binary files a/assets/button-dark.png and /dev/null differ diff --git a/assets/button-light.png b/assets/button-light.png deleted file mode 100644 index f4eca0d..0000000 Binary files a/assets/button-light.png and /dev/null differ diff --git a/content/links.md b/content/links.md index 78d53f8..b446e35 100644 --- a/content/links.md +++ b/content/links.md @@ -151,8 +151,6 @@ below. You have an option depending on your website's color scheme :-) | Type | Preview | HTML | | -----|---------|--------| -| 200x40 Banner | ![](/banner.webp) | `````` | -| 200x40 Banner | ![](/banner2.webp) | `````` | -| 88x31 Button | ![](/button-light.png) | `````` | -| 88x31 Button |![](/button-dark.png) | `````` | +| 88x31 Button | {{< out-link banner="https://images.redstrate.com/misc/button.png" link="" label="" >}} | `````` | +| 88x31 Button (Text-only) | {{< out-link banner="https://images.redstrate.com/misc/button2.png" link="" label="" >}} | `````` | diff --git a/themes/red/layouts/shortcodes/out-link.html b/themes/red/layouts/shortcodes/out-link.html index 6898774..a2a6374 100644 --- a/themes/red/layouts/shortcodes/out-link.html +++ b/themes/red/layouts/shortcodes/out-link.html @@ -6,6 +6,9 @@ {{ $path := printf "/links/%s" $banner}} {{ $img := resources.Get $path }} +{{ if not $img }} + {{ $img = resources.GetRemote $banner }} +{{ end }} {{ with $img }} {{ $label }}