Skip to content

Commit 1d2c5ab

Browse files
feat: improve SEO with keywords and updating descriptions (#211)
* feat: improve SEO with keywords and updating descriptions * fix: inject keywords to meta tags
1 parent 76e05c2 commit 1d2c5ab

File tree

109 files changed

+156
-136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+156
-136
lines changed

β€Ždocs/.vitepress/config.mtsβ€Ž

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ export default withMermaid(defineConfig({
125125

126126
transformPageData(pageData) {
127127
const head = pageData.frontmatter.head ??= []
128+
129+
// Inject canonical URL if not already defined in frontmatter
128130
const hasCanonical = head.some(
129131
([tag, attrs]) => tag === 'link' && attrs?.rel === 'canonical'
130132
)
@@ -134,6 +136,12 @@ export default withMermaid(defineConfig({
134136
.replace(/\.md$/, '')
135137
head.push(['link', { rel: 'canonical', href: canonicalUrl }])
136138
}
139+
140+
// Inject frontmatter keywords as a meta tag (VitePress doesn't do this natively)
141+
const keywords = pageData.frontmatter.keywords
142+
if (keywords) {
143+
head.push(['meta', { name: 'keywords', content: keywords }])
144+
}
137145
},
138146

139147
themeConfig: {

β€Ždocs/api-reference/customer/delete-customer.mdβ€Ž

Lines changed: 1 addition & 1 deletion

β€Ždocs/api-reference/cycle/delete-cycle.mdβ€Ž

Lines changed: 1 addition & 1 deletion

β€Ždocs/api-reference/inbox-issue/delete-inbox-issue.mdβ€Ž

Lines changed: 1 addition & 1 deletion

β€Ždocs/api-reference/initiative/delete-initiative.mdβ€Ž

Lines changed: 1 addition & 1 deletion

β€Ždocs/api-reference/intake-issue/delete-intake-issue.mdβ€Ž

Lines changed: 1 addition & 1 deletion

β€Ždocs/api-reference/issue-attachments/delete-attachment.mdβ€Ž

Lines changed: 1 addition & 1 deletion

β€Ždocs/api-reference/issue-comment/delete-issue-comment.mdβ€Ž

Lines changed: 1 addition & 1 deletion

β€Ždocs/api-reference/issue/delete-issue.mdβ€Ž

Lines changed: 1 addition & 1 deletion

β€Ždocs/api-reference/label/delete-label.mdβ€Ž

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
Β (0)