From 4fe793e128d681d914c3db7fe78596acbf500d25 Mon Sep 17 00:00:00 2001 From: Scott Huberty <52462026+scott-huberty@users.noreply.github.com> Date: Wed, 8 May 2024 00:47:59 -0700 Subject: [PATCH] feat: Add linkedin_url theme option --- src/shibuya/theme/shibuya/components/foot-socials.html | 3 +++ src/shibuya/theme/shibuya/theme.conf | 1 + static/css/simpleicons.css | 3 +++ static/simpleicons/linkedin.svg | 1 + 4 files changed, 8 insertions(+) create mode 100644 static/simpleicons/linkedin.svg diff --git a/src/shibuya/theme/shibuya/components/foot-socials.html b/src/shibuya/theme/shibuya/components/foot-socials.html index cab1f5f..7bf577c 100644 --- a/src/shibuya/theme/shibuya/components/foot-socials.html +++ b/src/shibuya/theme/shibuya/components/foot-socials.html @@ -26,4 +26,7 @@ {%- if theme_reddit_url %} {%- endif %} + {%- if theme_linkedin_url %} + + {%- endif %} diff --git a/src/shibuya/theme/shibuya/theme.conf b/src/shibuya/theme/shibuya/theme.conf index 5df640b..bbf6926 100644 --- a/src/shibuya/theme/shibuya/theme.conf +++ b/src/shibuya/theme/shibuya/theme.conf @@ -43,6 +43,7 @@ mastodon_url = youtube_url = reddit_url = readthedocs_url = +linkedin_url = # open graph and twitter card og_image_url = diff --git a/static/css/simpleicons.css b/static/css/simpleicons.css index 708e942..9d8984c 100644 --- a/static/css/simpleicons.css +++ b/static/css/simpleicons.css @@ -9,6 +9,7 @@ --simpleicons-reddit-url:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286A.72.72 0 0 0 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199a1.999 1.999 0 1 1-1.947 2.46v.002a2.368 2.368 0 0 0-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363a2.802 2.802 0 1 1 2.908 4.753c-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87a2.8 2.8 0 0 1 1.189-5.34c.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01a3.229 3.229 0 0 1 2.88-3.207 2 2 0 0 1 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135a.222.222 0 0 0-.183.305 3.199 3.199 0 0 0 2.953 1.964 3.2 3.2 0 0 0 2.953-1.964.222.222 0 0 0-.184-.305 27.75 27.75 0 0 0-2.769-.135Z'/%3E%3C/svg%3E"); --simpleicons-x-twitter-url:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'/%3E%3C/svg%3E"); --simpleicons-youtube-url:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z'/%3E%3C/svg%3E"); + --simpleicons-linkedin-url:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12'/%3E%3C/svg%3E"); } .i-icon.bitbucket,.i-simpleicons.bitbucket{--icon-url:var(--simpleicons-bitbucket-url)} .i-icon.discord,.i-simpleicons.discord{--icon-url:var(--simpleicons-discord-url)} @@ -20,3 +21,5 @@ .i-icon.reddit,.i-simpleicons.reddit{--icon-url:var(--simpleicons-reddit-url)} .i-icon.x-twitter,.i-simpleicons.x-twitter{--icon-url:var(--simpleicons-x-twitter-url)} .i-icon.youtube,.i-simpleicons.youtube{--icon-url:var(--simpleicons-youtube-url)} +.i-icon.linkedin,.i-simpleicons.youtube{--icon-url:var(--simpleicons-linkedin-url)} + diff --git a/static/simpleicons/linkedin.svg b/static/simpleicons/linkedin.svg new file mode 100644 index 0000000..caa6e69 --- /dev/null +++ b/static/simpleicons/linkedin.svg @@ -0,0 +1 @@ +LinkedIn \ No newline at end of file