]> danix's work - danix.xyz-2.git/commitdiff
feat: add social sharing widget to sidebar (articles and pages)
authorDanilo M. <redacted>
Fri, 17 Apr 2026 14:36:50 +0000 (16:36 +0200)
committerDanilo M. <redacted>
Fri, 17 Apr 2026 14:36:50 +0000 (16:36 +0200)
themes/danix-xyz-hacker/layouts/partials/sidebar.html

index 0d1b8028d5b2a05ee73ea369c4c58bf3a56b8486..2ec48a6b5a2dc46ad72ec267af6af8b310f7b0cf 100644 (file)
@@ -7,6 +7,9 @@
     </p>
   </div>
 
+  <!-- Social sharing widget -->
+  {{ partial "social-share.html" (dict "page" . "mode" "sidebar") }}
+
   <!-- Related posts widget (articles only) -->
   {{ if and .Site.Params.relatedPosts (eq .Type "articles") }}
   {{ $related := first 5 (.Site.RegularPages.Related .) }}