feat(website): basic SEO

This commit is contained in:
Simon
2026-03-12 20:01:00 +08:00
parent 4ad2abe997
commit ca68be7a56
5 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
import { useEffect } from 'react'
const DEFAULT_TITLE = 'PageAgent - The GUI Agent Living in Your Webpage'
export function useDocumentTitle(title?: string) {
useEffect(() => {
document.title = title ? `${title} - PageAgent` : DEFAULT_TITLE
}, [title])
}