feat(config): Add 404 page options. (#406)
This feature add the notFoundPage options to customize the default 404 page with a markdown file. It also support the localisation.
This commit is contained in:
parent
0933445e89
commit
9b3b4454de
5 changed files with 187 additions and 47 deletions
|
|
@ -35,8 +35,7 @@ function formatUpdated (html, updated, fn) {
|
|||
|
||||
function renderMain (html) {
|
||||
if (!html) {
|
||||
// TODO: Custom 404 page
|
||||
html = 'not found'
|
||||
html = '<h1>404 - Not found</h1>'
|
||||
}
|
||||
|
||||
this._renderTo('.markdown-section', html)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue