mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Regis Philibert
06.08.2022 a00dac36b5c57f5a8abe2b35477f692f86451e3a
This allows user to set `follow: false` on a service to see it removed from the list of socials throughout.

Fixes #547
1 files modified
2 ■■■ changed files
layouts/partials/social-follow.html 2 ●●● patch | view | raw | blame | history
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">