fix menu links
This commit is contained in:
parent
fb2b8a5f79
commit
30d0166830
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ function generate(pathname) {
|
||||||
var modified = guides.match(link) ? guides.replace(link, replace) : methods.replace(link, replace)
|
var modified = guides.match(link) ? guides.replace(link, replace) : methods.replace(link, replace)
|
||||||
return title + modified + "\n\n"
|
return title + modified + "\n\n"
|
||||||
})
|
})
|
||||||
.replace(/(\[[^\]]+)(\.md)/gim, function(match, path, extension) {
|
.replace(/(\]\([^\)]+)(\.md)/gim, function(match, path, extension) {
|
||||||
return path + (path.match(/http/) ? extension : ".html")
|
return path + (path.match(/http/) ? extension : ".html")
|
||||||
}) // fix links
|
}) // fix links
|
||||||
var html = layout
|
var html = layout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue