diff --git a/.vuepress/config.js b/.vuepress/config.js index aa1a6a8..a9c33b9 100644 --- a/.vuepress/config.js +++ b/.vuepress/config.js @@ -3,6 +3,9 @@ let dateFns = require('date-fns') module.exports = { title: 'Kuboard', description: 'A cool Kubernetes Dashboard', + head: [ + ['meta', {name: 'keywords', content: 'Kubernetes, Docker, Dashboard, Kuboard, Linux, K8S, cluster, 分布式, 集群, 容器, 高可用'}], + ], markdown: { toc: { includeLevel: [2, 3] } }, @@ -17,6 +20,22 @@ module.exports = { transformer: (timestamp, lang) => { return dateFns.format(timestamp, 'YYYY-MM-DD HH:mm:ss') } + }, + 'reading-progress': {}, + 'vuepress-plugin-element-tabs': {}, + 'vuepress-plugin-baidu-autopush':{}, + 'seo': { + siteTitle: (_, $site) => $site.title, + title: $page => $page.title, + description: $page => $page.frontmatter.description, + author: (_, $site) => $site.themeConfig.author, + tags: $page => $page.frontmatter.tags, + // twitterCard: _ => 'summary_large_image', + type: $page => ['articles', 'posts', 'blog'].some(folder => $page.regularPath.startsWith('/' + folder)) ? 'article' : 'website', + url: (_, $site, path) => ($site.themeConfig.domain || '') + path, + image: ($page, $site) => $page.frontmatter.image && (($site.themeConfig.domain || '') + $page.frontmatter.image), + publishedAt: $page => $page.frontmatter.date && new Date($page.frontmatter.date), + modifiedAt: $page => $page.lastUpdated && new Date($page.lastUpdated), } }, themeConfig: { diff --git a/.vuepress/theme/components/Sidebar.vue b/.vuepress/theme/components/Sidebar.vue index 3ec05ce..f7d93ea 100644 --- a/.vuepress/theme/components/Sidebar.vue +++ b/.vuepress/theme/components/Sidebar.vue @@ -8,7 +8,7 @@
diff --git a/.vuepress/theme/components/image-20190723104717575.png b/.vuepress/theme/components/image-20190723104717575.png index a75ad82..4fb805a 100644 Binary files a/.vuepress/theme/components/image-20190723104717575.png and b/.vuepress/theme/components/image-20190723104717575.png differ diff --git a/docs/404.html b/docs/404.html index 33e4897..49646ee 100644 --- a/docs/404.html +++ b/docs/404.html @@ -5,13 +5,13 @@