From 914df5fe70bbbc696fa7ca25e350964920056d10 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sat, 19 Aug 2023 14:38:58 +0200 Subject: [PATCH] Improved warning in social plugin about site_url --- material/plugins/social/plugin.py | 4 ++-- src/plugins/social/plugin.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/material/plugins/social/plugin.py b/material/plugins/social/plugin.py index 4c203e2a1..4f3183ac2 100644 --- a/material/plugins/social/plugin.py +++ b/material/plugins/social/plugin.py @@ -114,8 +114,8 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): # Check if site URL is defined if not config.site_url: log.warning( - "The \"social\" plugin needs the \"site_url\" configuration " - "option to be defined. It will likely not work correctly." + "The \"site_url\" option is not set. The cards are generated, " + "but not linked, so they won't be visible on social media." ) # Ensure presence of cache directory diff --git a/src/plugins/social/plugin.py b/src/plugins/social/plugin.py index 4c203e2a1..4f3183ac2 100644 --- a/src/plugins/social/plugin.py +++ b/src/plugins/social/plugin.py @@ -114,8 +114,8 @@ class SocialPlugin(BasePlugin[SocialPluginConfig]): # Check if site URL is defined if not config.site_url: log.warning( - "The \"social\" plugin needs the \"site_url\" configuration " - "option to be defined. It will likely not work correctly." + "The \"site_url\" option is not set. The cards are generated, " + "but not linked, so they won't be visible on social media." ) # Ensure presence of cache directory