Skip to content

Commit e130d1b

Browse files
author
Vue Play
committed
Stored by Vue Play
1 parent c4f40bd commit e130d1b

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"socket.io-client": "^4.7.4",
1414
"@feathersjs/client": "^5.0.22",
1515
"moment": "^2.30.1",
16-
"highlight.js": "^11.9.0"
16+
"highlight.js": "^11.9.0",
17+
"@unhead/vue": "^2.0.0-rc.13"
1718
},
1819
"devDependencies": {
1920
"@jscomponent/rollup": "^1.0.4",

src/views/About.vue

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,40 @@
357357
open(url) {
358358
location.href = url;
359359
}
360+
},
361+
head() {
362+
return {
363+
title: 'About',
364+
titleTemplate: '%s | Health Tips',
365+
meta: [{
366+
property: 'og:title',
367+
content: 'My Awesome About'
368+
}, {
369+
property: 'og:description',
370+
content: 'This is an amazing website!'
371+
}, {
372+
property: 'og:image',
373+
content: 'https://example.com/image.jpg'
374+
}, {
375+
property: 'og:url',
376+
content: 'https://example.com/page'
377+
}, {
378+
property: 'og:type',
379+
content: 'website'
380+
}, {
381+
name: 'twitter:card',
382+
content: 'summary_large_image'
383+
}, {
384+
name: 'twitter:title',
385+
content: 'My Awesome Page'
386+
}, {
387+
name: 'twitter:description',
388+
content: 'This is an amazing website!'
389+
}, {
390+
name: 'twitter:image',
391+
content: 'https://example.com/image.jpg'
392+
}]
393+
};
360394
}
361395
};
362396

src/views/Pricing.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,23 @@
7575
open(url) {
7676
location.href = url;
7777
}
78+
},
79+
head() {
80+
return {
81+
title: 'Pricing',
82+
titleTemplate: '%s | Health Tips',
83+
meta: [
84+
{ property: 'og:title', content: 'My Awesome Pricing' },
85+
{ property: 'og:description', content: 'This is an amazing website!' },
86+
{ property: 'og:image', content: 'https://example.com/image.jpg' },
87+
{ property: 'og:url', content: 'https://example.com/page' },
88+
{ property: 'og:type', content: 'website' },
89+
{ name: 'twitter:card', content: 'summary_large_image' },
90+
{ name: 'twitter:title', content: 'My Awesome Page' },
91+
{ name: 'twitter:description', content: 'This is an amazing website!' },
92+
{ name: 'twitter:image', content: 'https://example.com/image.jpg' }
93+
]
94+
}
7895
}
7996
};
8097

0 commit comments

Comments
 (0)