diff --git a/.eleventy.js b/.eleventy.js index bc085c9..cfae0c0 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -45,5 +45,12 @@ module.exports = function (eleventyConfig) { return basename[0].replace(/-/g, ' ') }) + // Convert diary date path to slug + eleventyConfig.addFilter('datePathSlugify', (path) => { + const folders = path.split('/') + const file = folders.pop().split('.') + return `${folders[3]}/${folders[4]}/${file[0]}` + }) + return {dir: {input: 'src', output: 'dist'}} } diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index ee78039..fc3ac04 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,6 +1,7 @@