From ee058d2931330355faba2ab80d497c0ad690b657 Mon Sep 17 00:00:00 2001
From: ManUtopiK <emmanuel.salomon@gmail.com>
Date: Sat, 25 Sep 2021 14:04:30 +0200
Subject: [PATCH] fix: set path '/' to '/pages'

---
 libs/hooks.js | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/libs/hooks.js b/libs/hooks.js
index a6b01a12..fc2a8bc2 100644
--- a/libs/hooks.js
+++ b/libs/hooks.js
@@ -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
-- 
GitLab