Skip to content
Snippets Groups Projects
Commit ee058d29 authored by Emmanuel Salomon's avatar Emmanuel Salomon :fist:
Browse files

fix: set path '/' to '/pages'

parent ad152b60
No related branches found
No related tags found
No related merge requests found
......@@ -18,12 +18,6 @@ export default {
}
},
async 'content:file:beforeInsert'(document) {
// Routes all /pages/_slug to /_slug
if (document.path.startsWith('/pages/')) {
document.dir = '/'
document.path = document.path.replace('/pages/', '/')
}
if (document.extension === '.md') {
/*
* Add reading time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment