feat: add defaultSocialImage (#1491) (#2100)

Add `defaultSocialImage` as the default image for social media sharing. This feature would be useful for users who don’t want to specify an image for every article. This PR also resolves the issue where the homepage missing an image when shared.
This commit is contained in:
ZhenShuo Leo
2025-05-03 02:59:33 +08:00
parent 1d21656d5e
commit e4b76d6fce
6 changed files with 13 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ disableTextInHeader = false
# defaultBackgroundImage = "IMAGE.jpg" # used as default for background images
# defaultFeaturedImage = "IMAGE.jpg" # used as default for featured images in all articles
# defaultSocialImage = "/android-chrome-512x512.png" # used as default for social media sharing (Open Graph and Twitter)
# highlightCurrentMenuArea = true
# smartTOC = true