From 55014d8507b9ddb13ed70b0fc1bd6fa2f158ba17 Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Wed, 15 Apr 2015 10:13:40 +0000 Subject: [PATCH] Don't use permalinks There is no way to make them works fine with tree menu --- index.js | 7 +------ package.json | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/index.js b/index.js index 950e4d9..62af0f5 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,5 @@ var Metalsmith = require('metalsmith'), markdown = require('metalsmith-markdown'), - permalinks = require('metalsmith-permalinks'), assets = require('metalsmith-assets'), templates = require('metalsmith-templates'), navigation = require('metalsmith-navigation'), @@ -27,9 +26,6 @@ bower.commands.install([], {}, {}) } }) .use(markdown()) - // Permalink pattern is intentionally omitted to convert files like - // path/to/md/file.md to path/to/md/file/index.html - .use(permalinks()) .use(navigation( { contents: { @@ -39,8 +35,7 @@ bower.commands.install([], {}, {}) } }, navSettings = { - navListProperty: 'navs', - permalinks: true + navListProperty: 'navs' } )) .use(templates({ diff --git a/package.json b/package.json index e7458ad..cde082b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "dependencies": { "metalsmith-templates": "^0.7.0", "metalsmith-markdown": "^0.2.1", - "metalsmith-permalinks": "^0.4.0", "metalsmith-navigation": "https://github.com/unstoppablecarl/metalsmith-navigation/archive/82a23b98a659097355ef784ecebbee1a56c36aac.tar.gz", "metalsmith-assets": "^0.1.0", "metalsmith": "^1.5.0",