better error pages
This commit is contained in:
2
assets/public/js/app.min.js
vendored
2
assets/public/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -186,7 +186,7 @@ $(document).on('page:browse', function() {
|
||||
|
||||
if (request.status == 200) {
|
||||
$.pjax({
|
||||
url: request.Location,
|
||||
url: response.location,
|
||||
container: '#content'
|
||||
})
|
||||
}
|
||||
|
||||
8
assets/templates/error.tmpl
Normal file
8
assets/templates/error.tmpl
Normal 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 }}
|
||||
Reference in New Issue
Block a user