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:
Romain Lenzotti 2018-03-03 15:09:01 +01:00 • committed by cinwell.li
commit 9b3b4454de
5 changed files with 187 additions and 47 deletions

View file

@ -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)