From d038204f0558226f5f460d50d7e7f8e3091ec0d3 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 23 Feb 2023 19:16:09 -0500 Subject: [PATCH] Add outgoing links --- content/links.md | 21 ++++++++++++++++++--- themes/red/layouts/shortcodes/out-link.html | 13 +++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 themes/red/layouts/shortcodes/out-link.html diff --git a/content/links.md b/content/links.md index 5cfde6b..eff4e16 100644 --- a/content/links.md +++ b/content/links.md @@ -4,9 +4,24 @@ title: "Links" If you want to link back to my website, you can use one of the two banners below. You have an option depending on your website's color scheme :-) Please -host the image on your own server! +host the image on your own server if you can! -![Banner 1](banner.webp) +![Banner 1](/banner.webp) -![Banner 2](banner2.webp) +![Banner 2](/banner2.webp) +## Outgoing + +If you wish to be added and I missed you, or I made a horrific mistake, please [contact me](/contact). Websites without banners to be added later. + +{{< out-link banner="goldgust_net.png" link="https://goldgust.net" label="Gold" >}} + +{{< out-link banner="aks.png" link="https://www.akselmo.dev" label="Aks" >}} + +{{< out-link banner="nina.png" link="https://misnina.com" label="Nina" >}} + +{{< out-link banner="neuroknives.png" link="https://euroknives.com" label="Neuroknives" >}} + +{{< out-link banner="bigraccoon-logo-white.png" link="https://bigraccoon.ca/" label="Johann Sebastian Staedtler" >}} + +{{< out-link banner="tof.png" link="https://toffeee.com" label="toffee" >}} diff --git a/themes/red/layouts/shortcodes/out-link.html b/themes/red/layouts/shortcodes/out-link.html new file mode 100644 index 0000000..0373594 --- /dev/null +++ b/themes/red/layouts/shortcodes/out-link.html @@ -0,0 +1,13 @@ +{{ $link := .Get "link" }} +{{ $banner := .Get "banner" }} +{{ $label := .Get "label" }} + + + +{{ $path := printf "/links/%s" $banner}} +{{ $img := resources.Get $path }} +{{ with $img }} +{{ $label }} +{{ end }} + +