From e19ebe26ecd117a77c8fdda2e7667fca42160e1d Mon Sep 17 00:00:00 2001 From: Zach Berwaldt Date: Tue, 26 Sep 2023 22:06:05 -0400 Subject: stuff --- layouts/partials/social.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 layouts/partials/social.html (limited to 'layouts/partials/social.html') diff --git a/layouts/partials/social.html b/layouts/partials/social.html new file mode 100644 index 0000000..03645ad --- /dev/null +++ b/layouts/partials/social.html @@ -0,0 +1,16 @@ +{{ $social := .social }} +{{ $username := .username }} + +{{ $url := "" }} + +{{ if eq $social "github" }} + {{ $url = printf "https://github.com/%s" $username }} +{{ else if eq $social "linkedin" }} + {{ $url = printf "https://www.linkedin.com/in/%s" $username }} +{{ else }} + {{ $url = "#" }} +{{ end }} + + + {{ title $social }} + \ No newline at end of file -- cgit v1.1