mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
fix(website): improve SEO with favicons, structured data and robots.txt (#2657)
This commit is contained in:
@@ -35,31 +35,19 @@ export default defineConfig({
|
|||||||
description: taskDescription,
|
description: taskDescription,
|
||||||
lang: 'en-US',
|
lang: 'en-US',
|
||||||
head: [
|
head: [
|
||||||
[
|
// Favicon ICO for legacy browsers (auto-discovery)
|
||||||
'link',
|
['link', { rel: 'icon', href: '/favicon.ico', sizes: '48x48' }],
|
||||||
{
|
// Favicon SVG for modern browsers (scalable)
|
||||||
rel: 'icon',
|
['link', { rel: 'icon', href: '/img/logo.svg', type: 'image/svg+xml' }],
|
||||||
type: 'image/x-icon',
|
// Apple Touch Icon for iOS devices
|
||||||
href: '/img/favicon.ico',
|
['link', { rel: 'apple-touch-icon', href: '/img/logo.png' }],
|
||||||
sizes: '48x48'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'link',
|
|
||||||
{
|
|
||||||
rel: 'icon',
|
|
||||||
sizes: 'any',
|
|
||||||
type: 'image/svg+xml',
|
|
||||||
href: '/img/logo.svg'
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[
|
[
|
||||||
'meta',
|
'meta',
|
||||||
{ name: 'author', content: `${team.map((c) => c.name).join(', ')}` }
|
{ name: 'author', content: `${team.map((c) => c.name).join(', ')}` }
|
||||||
],
|
],
|
||||||
// Open Graph
|
// Open Graph
|
||||||
['meta', { property: 'og:type', content: 'website' }],
|
['meta', { property: 'og:type', content: 'website' }],
|
||||||
['meta', { property: 'og:site_name', content: taskName }],
|
['meta', { property: 'og:site_name', content: 'Task' }],
|
||||||
['meta', { property: 'og:image', content: ogImage }],
|
['meta', { property: 'og:image', content: ogImage }],
|
||||||
// Twitter Card
|
// Twitter Card
|
||||||
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
|
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
|
||||||
@@ -80,6 +68,16 @@ export default defineConfig({
|
|||||||
src: "https://u.taskfile.dev/script.js",
|
src: "https://u.taskfile.dev/script.js",
|
||||||
"data-website-id": "084030b0-0e3f-4891-8d2a-0c12c40f5933"
|
"data-website-id": "084030b0-0e3f-4891-8d2a-0c12c40f5933"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"script",
|
||||||
|
{ type: "application/ld+json" },
|
||||||
|
JSON.stringify({
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "WebSite",
|
||||||
|
"name": "Task",
|
||||||
|
"url": "https://taskfile.dev/"
|
||||||
|
})
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
transformHead({ pageData }) {
|
transformHead({ pageData }) {
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 170 KiB |
4
website/src/public/robots.txt
Normal file
4
website/src/public/robots.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
Sitemap: https://taskfile.dev/sitemap.xml
|
||||||
Reference in New Issue
Block a user