Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
[#854] Add 40x error page
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed Feb 8, 2017
1 parent ad21d49 commit 0e1a517
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index/metalsmith-godi-ensurebucket.js
Expand Up @@ -67,9 +67,9 @@ let ensureWebsite = function(bucketName) {
debug('No website configured for bucket. Attempting to add one.');
const createParams = _.clone(params);
createParams.WebsiteConfiguration = {
// ErrorDocument: {
// Key: 'STRING_VALUE' /* required */
// },
ErrorDocument: {
Key: '404.html'
},
IndexDocument: {
Suffix: 'index.html'
}
Expand Down
10 changes: 10 additions & 0 deletions index/src/404.html
@@ -0,0 +1,10 @@
---
title: An error occurred
layout: base.html
permalink: false
---

<div class="container">
<h1>An error occurred</h1>
<p>Sorry, this page could not be reached.</p>
</div>

0 comments on commit 0e1a517

Please sign in to comment.