From db2a1d1b1984d00a52b0be1cb74b2b3aefb31ad5 Mon Sep 17 00:00:00 2001 From: Scott Lee Chua Date: Mon, 1 Sep 2025 23:22:19 +0800 Subject: [PATCH] Socials icons: Check if rss_icon: false (#3282) Partially addresses issue #3280. Currently, the RSS feed icon in the socials section will show whenever `rss_icon` in `data/_socials.yml` has a value --- **even if that value is `false`**. Unlike the other social settings, which are empty by default, for `rss_icon` the default setting is `true`. So it makes sense that a user might expect `rss_icon: false` to disable said icon. This PR just adds a check if the value is `false` and hides the icon if so. --- _includes/social.liquid | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_includes/social.liquid b/_includes/social.liquid index 7be4335..51907a4 100644 --- a/_includes/social.liquid +++ b/_includes/social.liquid @@ -59,7 +59,9 @@ {% when 'research_gate_profile' %} {% when 'rss_icon' %} - + {% if social[1] == true %} + + {% endif %} {% when 'scholar_userid' %} {% when 'scopus_id' %}