Changed clobber rule and 404 html file
This commit is contained in:
parent
83247d85cc
commit
c3bae2268f
4 changed files with 31 additions and 2 deletions
2
Rakefile
2
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]
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
27
include/404.html
Normal file
27
include/404.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<link rel="stylesheet" type="text/css" href="include/main.css" />
|
||||
<title>404</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<h1 style="font-size: 5em; font-weight: normal;"> Page not found </h1>
|
||||
|
||||
<div id="titre">
|
||||
<h2> <span class="small">404</h2>
|
||||
</div>
|
||||
|
||||
<div id="afterhead" style="padding-top: 2em; font-size: 1.3em;">
|
||||
<div class="block left">
|
||||
<h3><a href="/">Return Home <span class="nicer">»</span></a></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
<div id="content">
|
||||
|
||||
<div class="navigation">
|
||||
<div class="home"><a href="/HOME_URL/">« Home</a></div>
|
||||
<div class="home"><a href="/HOME_URL/">↑ Home ↑</a></div>
|
||||
<div class="navigationprev"><a href="/PREV_URL/"><span class="nicer">«</span> previous</a></div>
|
||||
<div class="navigationnext"><a href="/NEXT_URL/">next <span class="nicer">»</span></a></div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue