From 392d78a72ad355b4592d399c9b70e4d09b9da8ab Mon Sep 17 00:00:00 2001 From: Sanne de Vries <65487235+sanne-san@users.noreply.github.com> Date: Tue, 22 Apr 2025 13:22:10 +0200 Subject: [PATCH] [Solo] Added support for additional social links (#406) * [Solo] Added support for additional social links Ref https://linear.app/ghost/issue/PLG-413/add-helpers-to-official-themes * Switched to single social_url helper for all social links Ref https://linear.app/ghost/issue/PLG-413/add-helpers-to-official-themes --- author.hbs | 25 +++++++++++++++++++++++-- partials/icons/bluesky.hbs | 3 +++ partials/icons/instagram.hbs | 5 +++++ partials/icons/linkedin.hbs | 3 +++ partials/icons/mastodon.hbs | 3 +++ partials/icons/threads.hbs | 3 +++ partials/icons/tiktok.hbs | 3 +++ partials/icons/twitter.hbs | 4 ++-- partials/icons/youtube.hbs | 3 +++ 9 files changed, 48 insertions(+), 4 deletions(-) create mode 100644 partials/icons/bluesky.hbs create mode 100644 partials/icons/instagram.hbs create mode 100644 partials/icons/linkedin.hbs create mode 100644 partials/icons/mastodon.hbs create mode 100644 partials/icons/threads.hbs create mode 100644 partials/icons/tiktok.hbs create mode 100644 partials/icons/youtube.hbs diff --git a/author.hbs b/author.hbs index cd2d62a..bdf3508 100644 --- a/author.hbs +++ b/author.hbs @@ -21,10 +21,31 @@ {{website}} {{/if}} {{#if twitter}} - {{> "icons/twitter"}} + {{> "icons/twitter"}} {{/if}} {{#if facebook}} - {{> "icons/facebook"}} + {{> "icons/facebook"}} + {{/if}} + {{#if linkedin}} + {{> "icons/linkedin"}} + {{/if}} + {{#if bluesky}} + {{> "icons/bluesky"}} + {{/if}} + {{#if threads}} + {{> "icons/threads"}} + {{/if}} + {{#if mastodon}} + {{> "icons/mastodon"}} + {{/if}} + {{#if tiktok}} + {{> "icons/tiktok"}} + {{/if}} + {{#if youtube}} + {{> "icons/youtube"}} + {{/if}} + {{#if instagram}} + {{> "icons/instagram"}} {{/if}} diff --git a/partials/icons/bluesky.hbs b/partials/icons/bluesky.hbs new file mode 100644 index 0000000..c1a1741 --- /dev/null +++ b/partials/icons/bluesky.hbs @@ -0,0 +1,3 @@ + + + diff --git a/partials/icons/instagram.hbs b/partials/icons/instagram.hbs new file mode 100644 index 0000000..23b25d8 --- /dev/null +++ b/partials/icons/instagram.hbs @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/partials/icons/linkedin.hbs b/partials/icons/linkedin.hbs new file mode 100644 index 0000000..89372fd --- /dev/null +++ b/partials/icons/linkedin.hbs @@ -0,0 +1,3 @@ + + + diff --git a/partials/icons/mastodon.hbs b/partials/icons/mastodon.hbs new file mode 100644 index 0000000..57b6146 --- /dev/null +++ b/partials/icons/mastodon.hbs @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/partials/icons/threads.hbs b/partials/icons/threads.hbs new file mode 100644 index 0000000..a42d9ee --- /dev/null +++ b/partials/icons/threads.hbs @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/partials/icons/tiktok.hbs b/partials/icons/tiktok.hbs new file mode 100644 index 0000000..250ed9e --- /dev/null +++ b/partials/icons/tiktok.hbs @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/partials/icons/twitter.hbs b/partials/icons/twitter.hbs index bb02b6a..1df8f0b 100644 --- a/partials/icons/twitter.hbs +++ b/partials/icons/twitter.hbs @@ -1,3 +1,3 @@ - - + + \ No newline at end of file diff --git a/partials/icons/youtube.hbs b/partials/icons/youtube.hbs new file mode 100644 index 0000000..f8cb9d2 --- /dev/null +++ b/partials/icons/youtube.hbs @@ -0,0 +1,3 @@ + + + \ No newline at end of file