mirror of
https://github.com/Mibew/docs.mibew.org.git
synced 2025-04-20 10:07:23 +03:00
Don't use permalinks
There is no way to make them works fine with tree menu
This commit is contained in:
parent
0b134baba9
commit
55014d8507
7
index.js
7
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({
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user