Skip to content

Commit 46e0538

Browse files
authored
Merge pull request #2 from xrdebug/chore/template_sync_55993bc
upstream merge template repository
2 parents 7c11e9b + 61c340f commit 46e0538

3 files changed

Lines changed: 2533 additions & 2807 deletions

File tree

.vuepress/config.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@ project.head.push(
77
content: 'width=device-width, initial-scale=1.0'
88
}]
99
);
10-
10+
if (!project.themeConfig) {
11+
project.themeConfig = {};
12+
}
13+
if (!project.themeConfig.nav) {
14+
project.themeConfig.nav = [];
15+
}
1116
if (!project.plugins) {
1217
project.plugins = [];
1318
}
1419
project.plugins.push(
15-
['@vuepress/medium-zoom', true]
20+
['@vuepress/medium-zoom', true],
21+
['seo', project.themeConfig.seo || {}]
1622
);
17-
if (!project.themeConfig.nav) {
18-
project.themeConfig.nav = [];
19-
}
2023
if (project.themeConfig.nav_before) {
2124
project.themeConfig.nav.unshift(
2225
...project.themeConfig.nav_before

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"author": "Rodolfo Berrios",
1818
"dependencies": {
19+
"vuepress-plugin-seo": "0.1.4",
1920
"vuepress-theme-default-prefers-color-scheme": "https://github.com/rodber/vuepress-theme-default-prefers-color-scheme#2.0.1"
2021
}
2122
}

0 commit comments

Comments
 (0)