feat(pages): add option to use media kit social card for OG image
Add checkbox in pages SEO settings to use the repository's Media Kit social preview as the Open Graph image instead of a custom URL. When enabled, shows preview of the social card and uses /social-preview endpoint. Adds og:title, og:description, og:image, and twitter:card meta tags to pages base template. Improves social sharing integration with existing Media Kit feature.
This commit is contained in:
@@ -207,12 +207,13 @@ type ThemeConfig struct {
|
||||
|
||||
// SEOConfig represents SEO and social sharing settings
|
||||
type SEOConfig struct {
|
||||
Title string `yaml:"title,omitempty"`
|
||||
Description string `yaml:"description,omitempty"`
|
||||
Keywords []string `yaml:"keywords,omitempty"`
|
||||
OGImage string `yaml:"og_image,omitempty"`
|
||||
TwitterCard string `yaml:"twitter_card,omitempty"`
|
||||
TwitterSite string `yaml:"twitter_site,omitempty"`
|
||||
Title string `yaml:"title,omitempty"`
|
||||
Description string `yaml:"description,omitempty"`
|
||||
Keywords []string `yaml:"keywords,omitempty"`
|
||||
OGImage string `yaml:"og_image,omitempty"`
|
||||
UseMediaKitOG bool `yaml:"use_media_kit_og,omitempty"`
|
||||
TwitterCard string `yaml:"twitter_card,omitempty"`
|
||||
TwitterSite string `yaml:"twitter_site,omitempty"`
|
||||
}
|
||||
|
||||
// AnalyticsConfig represents analytics settings
|
||||
|
||||
Reference in New Issue
Block a user