mirror of
https://github.com/Mibew/docs.mibew.org.git
synced 2025-05-01 22:56:41 +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'),
|
var Metalsmith = require('metalsmith'),
|
||||||
markdown = require('metalsmith-markdown'),
|
markdown = require('metalsmith-markdown'),
|
||||||
permalinks = require('metalsmith-permalinks'),
|
|
||||||
assets = require('metalsmith-assets'),
|
assets = require('metalsmith-assets'),
|
||||||
templates = require('metalsmith-templates'),
|
templates = require('metalsmith-templates'),
|
||||||
navigation = require('metalsmith-navigation'),
|
navigation = require('metalsmith-navigation'),
|
||||||
@ -27,9 +26,6 @@ bower.commands.install([], {}, {})
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.use(markdown())
|
.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(
|
.use(navigation(
|
||||||
{
|
{
|
||||||
contents: {
|
contents: {
|
||||||
@ -39,8 +35,7 @@ bower.commands.install([], {}, {})
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
navSettings = {
|
navSettings = {
|
||||||
navListProperty: 'navs',
|
navListProperty: 'navs'
|
||||||
permalinks: true
|
|
||||||
}
|
}
|
||||||
))
|
))
|
||||||
.use(templates({
|
.use(templates({
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"metalsmith-templates": "^0.7.0",
|
"metalsmith-templates": "^0.7.0",
|
||||||
"metalsmith-markdown": "^0.2.1",
|
"metalsmith-markdown": "^0.2.1",
|
||||||
"metalsmith-permalinks": "^0.4.0",
|
|
||||||
"metalsmith-navigation": "https://github.com/unstoppablecarl/metalsmith-navigation/archive/82a23b98a659097355ef784ecebbee1a56c36aac.tar.gz",
|
"metalsmith-navigation": "https://github.com/unstoppablecarl/metalsmith-navigation/archive/82a23b98a659097355ef784ecebbee1a56c36aac.tar.gz",
|
||||||
"metalsmith-assets": "^0.1.0",
|
"metalsmith-assets": "^0.1.0",
|
||||||
"metalsmith": "^1.5.0",
|
"metalsmith": "^1.5.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user