Commit 26bd4898 authored by Julian Gallimore's avatar Julian Gallimore
Browse files

Merge branch 'seo-frontmatter'

# Conflicts:
#	apply/registration.md
parents 25709b84 e31b4c2b
Pipeline #256109 passed with stages
in 2 minutes and 17 seconds
......@@ -12,3 +12,7 @@ trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[.vuepress/config.js]
indent_style = space
indent_size = 4
......@@ -41,6 +41,7 @@ module.exports = {
* ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
*/
themeConfig: {
domain: 'https://fabacademy.org',
lastUpdated: 'Last Updated',
logo: '/fab-academy2.jpg',
footerCopy: "© 2021 Fab Academy",
......@@ -321,6 +322,15 @@ module.exports = {
*/
plugins: [
'@vuepress/back-to-top',
['@vuepress/google-analytics', { ga: 'UA-46064152-5' }]
['@vuepress/google-analytics', { ga: 'UA-46064152-5' }],
['vuepress-plugin-seo', {
customMeta: (add, context) => {
const { $page, $site } = context
if (!$page.frontmatter.canonicalUrl) {
$page.frontmatter.canonicalUrl = ($site.themeConfig.domain || "") + $page.path;
}
}
}]
]
}
......@@ -7734,6 +7734,11 @@ vuepress-plugin-container@^2.0.2:
"@vuepress/shared-utils" "^1.2.0"
markdown-it-container "^2.0.0"
vuepress-plugin-seo@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/vuepress-plugin-seo/-/vuepress-plugin-seo-0.1.4.tgz#be8e5577491c1fc317a7ad4abe3ae51ff317be1e"
integrity sha512-foNKrAAKihiC47bx0UXFzs/+BIFmnowTQsLVF/8pfsnsPDp8FXjkTGyjxyjOhbwj7ADPv32CdX3pEoYGnZ7OjA==
vuepress-plugin-smooth-scroll@^0.0.3:
version "0.0.3"
resolved "https://registry.yarnpkg.com/vuepress-plugin-smooth-scroll/-/vuepress-plugin-smooth-scroll-0.0.3.tgz#6eff2d4c186cca917cc9f7df2b0af7de7c8c6438"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment