first commit

This commit is contained in:
ronger 2020-07-01 16:30:35 +08:00
parent fbafa3db60
commit eb44b5f2d5
2 changed files with 36 additions and 2 deletions

View File

@ -52,7 +52,7 @@ export default {
** https://nuxtjs.org/guide/plugins ** https://nuxtjs.org/guide/plugins
*/ */
plugins: [ plugins: [
{src: '@/plugins/element-ui', ssr: true}, {src: '@/plugins/element-ui'},
{src: '@/plugins/vditor', ssr: false} {src: '@/plugins/vditor', ssr: false}
], ],
/* /*

View File

@ -143,7 +143,41 @@
}, },
head () { head () {
return { return {
title: this.article.articleTitle title: this.article.articleTitle||'RYMCU - 嵌入式知识学习交流平台',
meta: [
{
name: 'keywords',
content: this.article.articleTags || 'RYMCU'
},
{
name: 'description',
content: this.article.articlePreviewContent
},
{
name: 'site_name',
content: 'RYMCU'
},
{
name: 'url',
content: this.article.articlePermalink
},
{
name: 'og:title',
content: this.article.articleTitle + ' - RYMCU'
},
{
name: 'og:description',
content: this.article.articlePreviewContent
},
{
name: 'og:site_name',
content: 'RYMCU'
},
{
name: 'og:url',
content: this.article.articlePermalink
}
]
} }
}, },
data() { data() {