From ebe746ca635d216724f95da0620db982266f7499 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 13 Oct 2024 15:36:27 -0400 Subject: [PATCH] Directly link to my own buttons --- content/links.md | 3 +-- themes/red/layouts/shortcodes/out-link.html | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/content/links.md b/content/links.md index b446e35..7c6aabd 100644 --- a/content/links.md +++ b/content/links.md @@ -146,8 +146,7 @@ Want out of the button-less shame list? Make a button! # Incoming -If you want to link back to my website, you can use one of the two buttons -below. You have an option depending on your website's color scheme :-) +Please host these images yourself. I have two options depending on your preference: | Type | Preview | HTML | | -----|---------|--------| diff --git a/themes/red/layouts/shortcodes/out-link.html b/themes/red/layouts/shortcodes/out-link.html index a2a6374..4387beb 100644 --- a/themes/red/layouts/shortcodes/out-link.html +++ b/themes/red/layouts/shortcodes/out-link.html @@ -6,12 +6,11 @@ {{ $path := printf "/links/%s" $banner}} {{ $img := resources.Get $path }} -{{ if not $img }} - {{ $img = resources.GetRemote $banner }} -{{ end }} {{ with $img }} -{{ $label }} +{{ $label }} +{{ else }} +{{ $label }} {{ end }}