From 09bf24e83154aba8e0ed8178cebdeac16553e990 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 17 Apr 2026 16:36:22 +0200 Subject: feat: add social-share partial with 9 targets and two layout modes --- .../layouts/partials/social-share.html | 123 +++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 themes/danix-xyz-hacker/layouts/partials/social-share.html (limited to 'themes/danix-xyz-hacker/layouts') diff --git a/themes/danix-xyz-hacker/layouts/partials/social-share.html b/themes/danix-xyz-hacker/layouts/partials/social-share.html new file mode 100644 index 0000000..6934f4e --- /dev/null +++ b/themes/danix-xyz-hacker/layouts/partials/social-share.html @@ -0,0 +1,123 @@ +{{ $page := .page }} +{{ $mode := .mode | default "sidebar" }} +{{ $url := $page.Permalink | urlquery }} +{{ $title := $page.Title | urlquery }} + +{{ $gridClass := "grid-cols-2 gap-2" }} +{{ if eq $mode "inline" }} + {{ $gridClass = "grid-cols-5 gap-3 justify-items-center" }} +{{ end }} + +
+

{{ i18n "share" }}

+ +
-- cgit v1.2.3