@@ -129,40 +129,52 @@ export default defineConfig({
129129 pageData . frontmatter . head ??= [ ]
130130
131131 pageData . frontmatter . head . push (
132- // Google Search Console Verification Tag
133- [ 'meta' , {
134- name : 'google-site-verification' ,
135- content : 'Nk5wPIfa_duB_rD_ceHGXUhbTQhLn-aDcK8SpbhMiIg'
136- } ] ,
137-
138- // Bing Webmaster Tools Verification Tag
139- [ 'meta' , {
140- name : 'msvalidate.01' ,
141- content : '170417B93AA71CAAE347C7AD019A4460'
142- } ] ,
143-
144- // Canonical URL
132+ // Google Search Console Verification Tag
133+ [ 'meta' , {
134+ name : 'google-site-verification' ,
135+ content : 'Nk5wPIfa_duB_rD_ceHGXUhbTQhLn-aDcK8SpbhMiIg'
136+ } ] ,
137+
138+ // Bing Webmaster Tools Verification Tag
139+ [ 'meta' , {
140+ name : 'msvalidate.01' ,
141+ content : '170417B93AA71CAAE347C7AD019A4460'
142+ } ] ,
143+
144+ // Canonical URL
145145 [ 'link' , { rel : 'canonical' , href : canonicalUrl } ] ,
146146
147147 // Open Graph
148148 [ 'meta' , { property : 'og:title' , content : pageData . title } ] ,
149149 [ 'meta' , { property : 'og:description' , content : pageData . description || '' } ] ,
150150 [ 'meta' , { property : 'og:url' , content : canonicalUrl } ] ,
151151 [ 'meta' , { property : 'og:type' , content : isBlogPost ? 'article' : 'website' } ] ,
152-
152+ [ 'meta' , { property : 'og:site_name' , content : 'Excel to Graphviz' } ] ,
153+ [ 'meta' , { property : 'og:locale' , content : 'en_US' } ] ,
154+
153155 // Twitter / X Cards
154156 [ 'meta' , { name : 'twitter:card' , content : 'summary_large_image' } ] ,
155157 [ 'meta' , { name : 'twitter:title' , content : pageData . title } ] ,
156- [ 'meta' , { name : 'twitter:description' , content : pageData . description || '' } ]
158+ [ 'meta' , { name : 'twitter:description' , content : pageData . description || '' } ] ,
159+ [ 'meta' , { name : 'twitter:site' , content : '@exceltographviz' } ]
157160 )
158161
159- // Homepage social image
162+ // === Social Image Handling ===
160163 if ( pageData . frontmatter . layout === 'home' ) {
164+ // Homepage uses hero image
161165 pageData . frontmatter . head . push (
162166 [ 'meta' , { property : 'og:image' , content : 'https://exceltographviz.com/hero.png' } ] ,
163- [ 'meta' , { name : 'twitter:image' , content : 'https://exceltographviz.com/hero.png' } ]
167+ [ 'meta' , { name : 'twitter:image' , content : 'https://exceltographviz.com/hero.png' } ] ,
168+ [ 'meta' , { property : 'og:image:width' , content : '1200' } ] ,
169+ [ 'meta' , { property : 'og:image:height' , content : '630' } ]
164170 )
165- }
171+ } else {
172+ // All other pages use social-default.png
173+ pageData . frontmatter . head . push (
174+ [ 'meta' , { property : 'og:image' , content : 'https://exceltographviz.com/social-default.png' } ] ,
175+ [ 'meta' , { name : 'twitter:image' , content : 'https://exceltographviz.com/social-default.png' } ]
176+ )
177+ }
166178
167179 return pageData
168180 }
0 commit comments