Don't use permalinks

There is no way to make them works fine with tree menu
This commit is contained in:
Dmitriy Simushev 2015-04-15 10:13:40 +00:00
parent 0b134baba9
commit 55014d8507
2 changed files with 1 additions and 7 deletions

View File

@ -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({

View File

@ -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",