From ee7d4d38f69347e92de43b7e6eadcaf33d74cbaf Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Mon, 23 Oct 2023 22:27:10 +0100 Subject: [PATCH] Syndication icons --- content/photos/lncsouqdekcc63jpx4wm6pcozi/index.md | 2 ++ layouts/partials/imgorvid.html | 4 ++-- layouts/partials/syndication.html | 6 ++++++ layouts/photos/single.html | 11 ++++++++--- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/content/photos/lncsouqdekcc63jpx4wm6pcozi/index.md b/content/photos/lncsouqdekcc63jpx4wm6pcozi/index.md index 806e2fbb..7592dca5 100644 --- a/content/photos/lncsouqdekcc63jpx4wm6pcozi/index.md +++ b/content/photos/lncsouqdekcc63jpx4wm6pcozi/index.md @@ -10,6 +10,8 @@ tags: - nofilter - imported - from-instagram +syndications: +- https://www.instagram.com/p/CoscyoJvPtI9wJtAdE6fJJ1vY6AMB827jvAHUo0/ --- Pão de Açucar was *beautiful*\! diff --git a/layouts/partials/imgorvid.html b/layouts/partials/imgorvid.html index a1e4ff65..23b71741 100644 --- a/layouts/partials/imgorvid.html +++ b/layouts/partials/imgorvid.html @@ -1,11 +1,11 @@
{{ if hasSuffix .src ".mp4" }} -
\ No newline at end of file diff --git a/layouts/partials/syndication.html b/layouts/partials/syndication.html index 641d4089..68b4070d 100644 --- a/layouts/partials/syndication.html +++ b/layouts/partials/syndication.html @@ -4,6 +4,12 @@ {{ range .Params.syndications }} {{ if hasPrefix . "https://bsky.app/" }} {{ partial "syndication-ref.html" (dict "type" "bluesky" "link" .) }} + {{ else if hasPrefix . "https://pixelfed.social/" }} + {{ partial "syndication-ref.html" (dict "type" "pixelfed" "link" .) }} + {{ else if hasPrefix . "https://www.facebook.com/" }} + {{ partial "syndication-ref.html" (dict "type" "facebook" "link" .) }} + {{ else if hasPrefix . "https://www.instagram.com/" }} + {{ partial "syndication-ref.html" (dict "type" "instagram" "link" .) }} {{ else if hasPrefix . "https://hachyderm.io/" }} {{ partial "syndication-ref.html" (dict "type" "mastodon" "link" .) }} {{ else if hasPrefix . "https://www.goodreads.com/" }} diff --git a/layouts/photos/single.html b/layouts/photos/single.html index e561907d..d6003791 100644 --- a/layouts/photos/single.html +++ b/layouts/photos/single.html @@ -40,9 +40,14 @@ {{ dateFormat .Site.Params.dateformNumTime .Date }} -

+

+ - {{ partial "pagination-single.html" . }} - +
+
+ {{ partial "syndication.html" . }} +
+ {{ partial "pagination-single.html" . }} + {{ end }}