aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/social.html
diff options
context:
space:
mode:
authorZach Berwaldt <17715430+zberwaldt@users.noreply.github.com>2023-10-20 22:58:33 -0400
committerGitHub <noreply@github.com>2023-10-20 22:58:33 -0400
commitc516745d0dc2c6a51777ef00ef116c1b26e95ec7 (patch)
treeadcce31c689d3e63ab3ea8bd36f9ac384eca4cad /layouts/partials/social.html
parentb34e09f8fe1011963934dbf40dc92f0b258592ca (diff)
parent6bfd84ae2c7aad006c3bc84cdce9aebf894cbe62 (diff)
Merge pull request #1 from zberwaldt/developHEADmaster
Develop
Diffstat (limited to 'layouts/partials/social.html')
-rw-r--r--layouts/partials/social.html16
1 files changed, 16 insertions, 0 deletions
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 @@
1{{ $social := .social }}
2{{ $username := .username }}
3
4{{ $url := "" }}
5
6{{ if eq $social "github" }}
7 {{ $url = printf "https://github.com/%s" $username }}
8{{ else if eq $social "linkedin" }}
9 {{ $url = printf "https://www.linkedin.com/in/%s" $username }}
10{{ else }}
11 {{ $url = "#" }}
12{{ end }}
13
14<a href="{{ $url }}" target="_blank">
15 {{ title $social }}
16</a> \ No newline at end of file