From ae14ccf4072c13069e1f28e3c5f39bce4b917885 Mon Sep 17 00:00:00 2001
From: Patrick Kollitsch <patrick@davids-neighbour.com>
Date: Thu, 24 Oct 2024 08:28:55 +0000
Subject: [PATCH] docs(fix): update theme.toml with min version and authors

---
 layouts/partials/social/share.html |   29 +----------------------------
 1 files changed, 1 insertions(+), 28 deletions(-)

diff --git a/layouts/partials/social/share.html b/layouts/partials/social/share.html
index 14cdafc..61ae83b 100644
--- a/layouts/partials/social/share.html
+++ b/layouts/partials/social/share.html
@@ -33,7 +33,7 @@
         {{- continue -}}
         {{/* @todo notification into CLI that a network is configured but not supported */}}
       {{- end -}}
-      {{- $options := (dict "context" page "setup" $setup) }}
+      {{- $options := (dict "context" $context "setup" $setup) }}
       {{- $href := partialCached "func/getShareLink.html" $options $options -}}
       <a href="{{ $href }}"
         class="ananke-social-link {{ $setup.slug }} no-underline"
@@ -60,30 +60,3 @@
   </div>
 
 {{- end -}} {{/* if eq "true" $disabled */}}
-
-{{ define "partials/func/getShareLink.html" }}
-  {{- $context := .context -}}
-  {{- $setup := .setup -}}
-  {{- $separator := "&" -}}
-  {{- $title := $context.Title | transform.HTMLEscape -}}
-  {{- $description := $context.Summary | transform.Plainify | transform.HTMLEscape -}}
-  {{- $permalink := $context.Permalink | transform.HTMLEscape -}}
-  {{- with $setup.separator -}}
-    {{- $separator = . -}}
-  {{- end -}}
-  {{- $link := fmt.Printf "%s%s" $setup.link "?" -}}
-  {{- range $key, $value := $setup.particles -}}
-    {{- if compare.Eq $key "params" -}}
-      {{- $link = fmt.Printf "%s%s%s" $permalink $separator $value -}}
-    {{- else -}}
-      {{- if compare.Eq $value "description" -}}
-        {{- $link = fmt.Printf "%s%s%s" $link $separator (collections.Querify $key $description) -}}
-      {{- else if compare.Eq $value "title" -}}
-        {{- $link = fmt.Printf "%s%s%s" $link $separator (collections.Querify $key $title) -}}
-      {{- else if compare.Eq $value "permalink" -}}
-        {{- $link = fmt.Printf "%s%s%s" $link $separator (collections.Querify $key $permalink) -}}
-      {{- end -}}
-    {{- end -}}
-  {{- end -}}
-  {{- return $link -}}
-{{ end }}

--
Gitblit v1.10.0