Skip to content

Commit

Permalink
website: minor tweaks and improvements. (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
thruflo authored Sep 6, 2024
1 parent 5fff096 commit aac6775
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions website/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,22 @@ export default defineConfig({
{ icon: 'github', link: 'https://github.com/electric-sql' }
]
},
transformHead: ({ pageData, siteData }) => {
const fm = pageData.frontmatter
const head = []

const title = `${fm.title || siteData.title} | ${fm.titleTemplate || 'ElectricSQL'}`
const description = fm.description || siteData.description
const image = `https://electric-sql.com${fm.image || '/img/postgres-sync.jpg'}`

head.push(['meta', { name: 'twitter:card', content: 'summary_large_image' }])
head.push(['meta', { name: 'twitter:image', content: image }])
head.push(['meta', { property: 'og:title', content: title }])
head.push(['meta', { property: 'og:description', content: description }])
head.push(['meta', { property: 'og:image', content: image }])

return head
},
transformPageData(pageData) {
pageData.frontmatter.editLink = pageData.relativePath.startsWith('docs')
}
Expand Down
2 changes: 1 addition & 1 deletion website/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: home
title: 'ElectricSQL'
titleTemplate: 'Postgres Sync'
description: 'Your data, in sync, wherever you need it.'
description: 'Sync little subsets of your Postgres data into local apps and services.'
hero:
name: "Why fetch when"
text: "you can sync?"
Expand Down
Binary file added website/public/img/postgres-sync.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aac6775

Please sign in to comment.