better error pages

This commit is contained in:
Henrique Dias
2016-03-12 13:03:31 +00:00
parent 012cd383a0
commit b57bcb6b0e
13 changed files with 112 additions and 91 deletions

File diff suppressed because one or more lines are too long

View File

@@ -186,7 +186,7 @@ $(document).on('page:browse', function() {
if (request.status == 200) {
$.pjax({
url: request.Location,
url: response.location,
container: '#content'
})
}

View File

@@ -0,0 +1,8 @@
{{ define "content" }}
<main role="main" class="container browse error">
<h1>{{ .Title }}</h1>
<code>{{ .Message }}</code>
<p><strong>If this error persists contact us on <a href="https://gitter.im/hacdias/caddy-hugo">Gitter chat</a> or open an issue at <a href="https://github.com/hacdias/caddy-hugo/issues/new">GitHub</a>.</strong></p>
</main>
{{ end }}