Skip to content

Commit 99f4db1

Browse files
committed
update project
1 parent cb3889e commit 99f4db1

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

nuxt.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ export default {
1919
{
2020
hid: 'description',
2121
name: 'description',
22-
content: process.env.npm_package_description || ''
22+
content:
23+
'Tập trung cung cấp các nội dung liên quan đến công nghệ mới, các tools, tuts hỗ trợ cho lập trình viên nói riêng và người yêu công nghệ nói chung.'
24+
},
25+
{
26+
hid: 'keywords',
27+
name: 'keywords',
28+
content: 'vuejs, nuxt, javascript, tutorials, development, software'
2329
}
2430
],
2531
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]

pages/p/_slug.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,20 @@ export default {
1414
}
1515
},
1616
head() {
17+
const post = this.post
1718
return this.isValidPost()
1819
? {
19-
title: this.post.title.rendered,
20+
title: post.title.rendered,
2021
meta: [
2122
{
2223
hid: 'description',
2324
name: 'description',
24-
content: this.post.excerpt.rendered.replace(/<\/?[^>]+(>|$)/g, '')
25+
content: post.excerpt.rendered.replace(/<\/?[^>]+(>|$)/g, '')
2526
},
2627
{
2728
hid: 'og:title',
2829
property: 'og:title',
29-
content: this.post.title.rendered
30+
content: post.title.rendered
3031
},
3132
{
3233
hid: 'og:site_name',
@@ -41,7 +42,7 @@ export default {
4142
{
4243
hid: 'og:description',
4344
property: 'og:description',
44-
content: this.post.excerpt.rendered.replace(/<\/?[^>]+(>|$)/g, '')
45+
content: post.excerpt.rendered.replace(/<\/?[^>]+(>|$)/g, '')
4546
},
4647
{
4748
hid: 'og:type',
@@ -51,7 +52,7 @@ export default {
5152
{
5253
hid: 'og:image',
5354
property: 'og:image',
54-
content: this.post._embedded['wp:featuredmedia'][0].source_url
55+
content: post._embedded['wp:featuredmedia'][0].source_url
5556
}
5657
]
5758
}

0 commit comments

Comments
 (0)