From dc59e3f3a1f89315cba45e397a2cf36c42b0b337 Mon Sep 17 00:00:00 2001 From: Pascal Michaillat <85443660+pmichaillat@users.noreply.github.com> Date: Thu, 9 May 2024 07:58:39 -0700 Subject: [PATCH] Add social icons --- layouts/partials/svg.html | 46 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html index 85cd1741c..4fc844ae8 100644 --- a/layouts/partials/svg.html +++ b/layouts/partials/svg.html @@ -1,7 +1,5 @@ {{- $icon_name := ( trim .name " " | lower )}} -{{- if (eq $icon_name "location") -}} - -{{- else if (eq $icon_name "cv") -}} +{{- if (eq $icon_name "cv") -}} @@ -20,6 +18,11 @@ +{{- else if (eq $icon_name "facebook") -}} + + + {{- else if (eq $icon_name "github") -}} +{{- else if (eq $icon_name "instagram") -}} + + + + + {{- else if (eq $icon_name "linkedin") -}} @@ -46,6 +56,8 @@ +{{- else if (eq $icon_name "location") -}} + {{- else if (eq $icon_name "mastodon") -}} @@ -56,6 +68,14 @@ d="M17.832 8.633v5h-1.978V8.78c0-1.023-.43-1.542-1.29-1.542-.95 0-1.427.616-1.427 1.834v2.655H11.17V9.072c0-1.218-.476-1.834-1.427-1.834-.86 0-1.29.52-1.29 1.542v4.852H6.475V8.633c0-1.022.26-1.834.782-2.434.538-.6 1.243-.909 2.118-.909 1.012 0 1.779.39 2.286 1.169l.492.827.493-.827c.507-.78 1.274-1.169 2.286-1.169.875 0 1.58.308 2.118.909.522.6.782 1.412.782 2.434" fill="currentColor" stroke="none" /> +{{- else if (eq $icon_name "medium") -}} + + + + + {{- else if (eq $icon_name "office hours") -}} @@ -65,6 +85,10 @@ d="M128 256C198.7 256 256 198.7 256 128C256 57.3 198.7 0 128 0C57.3 0 0 57.3 0 128C0 198.7 57.3 256 128 256ZM70.9 186.2H86.3V127.5V79.0999H70.9V186.2ZM108.9 79.0999H150.5C190.1 79.0999 207.5 107.4 207.5 132.7C207.5 160.2 186 186.3 150.7 186.3H108.9V79.0999ZM124.3 172.4H148.8C183.7 172.4 191.7 145.9 191.7 132.7C191.7 111.2 178 93 148 93H124.3V172.4ZM78.6 66.8999C84.2 66.8999 88.7 62.2999 88.7 56.7999C88.7 51.2999 84.2 46.7 78.6 46.7C73 46.7 68.5 51.2 68.5 56.7999C68.5 62.2999 73 66.8999 78.6 66.8999Z" fill="currentColor" /> +{{- else if (eq $icon_name "patreon") -}} + + + {{- else if (eq $icon_name "paypal") -}} @@ -83,6 +107,12 @@ +{{- else if (eq $icon_name "researchgate") -}} + + + {{- else if (eq $icon_name "rss") -}} @@ -120,6 +150,16 @@ d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"> +{{- else if (eq $icon_name "vimeo") -}} + + + +{{- else if (eq $icon_name "ycombinator") -}} + + + {{- else if (eq $icon_name "youtube") -}}