From c3bae2268f3fe314774b5f16e4a49ee754671a0e Mon Sep 17 00:00:00 2001 From: "Yann Esposito (Yogsototh)" Date: Thu, 18 Nov 2010 10:24:37 +0100 Subject: [PATCH] Changed clobber rule and 404 html file --- Rakefile | 2 ++ config.ru | 2 +- include/404.html | 27 +++++++++++++++++++++++++++ include/template.html | 2 +- 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 include/404.html diff --git a/Rakefile b/Rakefile index cdf31af..1935c88 100644 --- a/Rakefile +++ b/Rakefile @@ -8,7 +8,9 @@ CLEAN.include('tmp/**/*') CLOBBER.include('**/*.pdf') CLOBBER.include('content/**/*.tex') CLOBBER.include('site/**/*.html') +CLOBBER.include('site/**/*.svg') CLOBBER.include('site/include/*') +CLOBBER.exclude('site/js') task :default => [:compile] diff --git a/config.ru b/config.ru index 8f3e40e..120d972 100644 --- a/config.ru +++ b/config.ru @@ -42,7 +42,7 @@ use Rack::TryStatic, :urls => %w[/], # match all requests :try => ['.html', 'index.html', '/index.html'] # try these postfixes sequentially -errorFile='site/404.html' +errorFile='site/include/404.html' run lambda { [404, { "Last-Modified" => File.mtime(errorFile).httpdate, "Content-Type" => "text/html", diff --git a/include/404.html b/include/404.html new file mode 100644 index 0000000..860e1e4 --- /dev/null +++ b/include/404.html @@ -0,0 +1,27 @@ + + + + + + + 404 + + +
+

Page not found

+ +
+

404

+
+ +
+ +
+
+ + + + diff --git a/include/template.html b/include/template.html index 23b2c75..6fb3d16 100644 --- a/include/template.html +++ b/include/template.html @@ -13,7 +13,7 @@