diff options
| author | Horus3 | 2016-11-23 19:10:04 +0100 |
|---|---|---|
| committer | Horus3 | 2016-11-23 19:10:04 +0100 |
| commit | c1446967ade3a0be1879090c3915d7646518fd14 (patch) | |
| tree | 27c7eeb8058edf4ee0049caae6e3227c4fa59ba2 | |
| parent | 361641262ea03b4509fe508184f02bdc8926ec1b (diff) | |
| download | iamfabulous.de-c1446967ade3a0be1879090c3915d7646518fd14.tar.gz | |
Adds new page 'error'.
| -rw-r--r-- | content/error.md | 8 | ||||
| -rw-r--r-- | gulpfile.js | 5 | ||||
| -rw-r--r-- | layouts/error/single.html | 35 |
3 files changed, 47 insertions, 1 deletions
diff --git a/content/error.md b/content/error.md new file mode 100644 index 0000000..7fc2541 --- /dev/null +++ b/content/error.md @@ -0,0 +1,8 @@ ++++ +date = "2016-11-18T11:10:19+02:00" +draft = false +title = "error" +type = "error" +layout = "single" + ++++ diff --git a/gulpfile.js b/gulpfile.js index 43c1167..dd5e46f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -13,7 +13,7 @@ gulp.task('concat', function() { gulp.task('uncss', function() { return gulp.src('static/concat.css') .pipe(uncss({ - html: ['public/*.html', 'public/projects/*.html', 'public/journal/*.html', 'public/journal/**/*.html', 'public/thankyou/*.html', 'public/contact/*.html'], + html: ['public/*.html', 'public/projects/*.html', 'public/journal/*.html', 'public/journal/**/*.html', 'public/thankyou/*.html', 'public/contact/*.html', 'public/error/*.html'], ignore: ['.text-right', '.text-left'] })) .pipe(cssnano()) @@ -27,6 +27,9 @@ gulp.task('minifyhtml', function() { gulp.src('public/projects/*.html') .pipe(htmlmin({collapseWhitespace: true})) .pipe(gulp.dest('public/projects/')); + gulp.src('public/error/*.html') + .pipe(htmlmin({collapseWhitespace: true})) + .pipe(gulp.dest('public/error/')); gulp.src('public/thankyou/*.html') .pipe(htmlmin({collapseWhitespace: true})) .pipe(gulp.dest('public/thankyou/')); diff --git a/layouts/error/single.html b/layouts/error/single.html new file mode 100644 index 0000000..d126d2f --- /dev/null +++ b/layouts/error/single.html @@ -0,0 +1,35 @@ +{{partial "header.tmpl" .}} +<div class="row"> + <header><p>{{.Title}}</p></header> +</div> + +<div class="container journal content"> + <div class="row"> + <div class="twelve columns article"> + <ul> + <li class="journal-li"> + <div class="margin-top">Sorry, there was an error!</div> + <br> + <pre> +_ ___ _.--. +\`.|\..----...-'` `-._.-'_.-'` +/ ' ` , __.--' +)/' _/ \ `-_, / +`-'" `"\_ ,_.-;_.-\_ ', + _.-'_./ {_.' ; / + {_.-``-' {_/ + ~~~~~~ ~~~~~ + </pre> + <div>Please try again.</div> + </li> + </ul> + </div> + </div> +</div> + +<div class="row center"> + <p class="twelve columns" style="margin-top: 20px"> + <a class="button" href="../" title="back to index">go back</a> + </p> +</div> +{{partial "footer.tmpl" .}} |
