From a00dac36b5c57f5a8abe2b35477f692f86451e3a Mon Sep 17 00:00:00 2001
From: Regis Philibert <login@regisphilibert.com>
Date: Fri, 06 May 2022 14:08:29 +0000
Subject: [PATCH] This allows user to set `follow: false` on a service to see it removed from the list of socials throughout.
---
layouts/partials/social-follow.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/social-follow.html b/layouts/partials/social-follow.html
index d651ad6..7e3f920 100644
--- a/layouts/partials/social-follow.html
+++ b/layouts/partials/social-follow.html
@@ -1,4 +1,4 @@
-{{ $socials := partialCached "func/socials/Get" "socials/Get" }}
+{{ $socials := where (partialCached "func/socials/Get" "socials/Get") "follow" "!=" false }}
<div class="ananke-socials">
{{ range $socials }}
<a href="{{ .url }}" target="_blank" class="{{ .name }} ananke-social-link link-transition stackoverflow link dib z-999 pt3 pt0-l {{ cond (eq $.Site.Language.LanguageDirection "rtl") "ml1" "mr1" }}" title="{{ .label }} link" rel="noopener" aria-label="follow on {{ .label }}——Opens in a new window">
--
Gitblit v1.10.0