Improved warning in social plugin about site_url

This commit is contained in:
squidfunk 2023-08-19 14:38:58 +02:00
parent 688c9de4c9
commit 914df5fe70
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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