From c1446967ade3a0be1879090c3915d7646518fd14 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Wed, 23 Nov 2016 19:10:04 +0100 Subject: Adds new page 'error'. --- content/error.md | 8 ++++++++ gulpfile.js | 5 ++++- layouts/error/single.html | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 content/error.md create mode 100644 layouts/error/single.html 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" .}} +
+

{{.Title}}

+
+ +
+
+
+
    +
  • +
    Sorry, there was an error!
    +
    +
    +_                ___       _.--. 
    +\`.|\..----...-'`   `-._.-'_.-'` 
    +/  ' `         ,       __.--'    
    +)/' _/     \   `-_,   /          
    +`-'" `"\_  ,_.-;_.-\_ ',         
    +    _.-'_./   {_.'   ; /         
    +   {_.-``-'         {_/          
    +   ~~~~~~          ~~~~~         
    +					
    +
    Please try again.
    +
  • +
+
+
+
+ +
+

+ go back +

+
+{{partial "footer.tmpl" .}} -- cgit v1.2.3