summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2013-04-20 17:40:22 +0200
committerSébastien Dailly <sebastien@chimrod.com>2013-04-20 17:40:22 +0200
commita0cbfad9fdacf74df26c8e8302900a2c48e9c140 (patch)
tree5c7ca7ac34277051889660db5f27dcfe545a8e02
parent91149dfb9162ff362c3d40472e68738adc22a75a (diff)
Added 404 and htacess file
-rw-r--r--extras/404.html8
-rw-r--r--extras/htaccess4
-rwxr-xr-xpelicanconf.py7
3 files changed, 17 insertions, 2 deletions
diff --git a/extras/404.html b/extras/404.html
new file mode 100644
index 0000000..5c0cda0
--- /dev/null
+++ b/extras/404.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+{% block content_title %}Erreur 404{% endblock %}
+{% block content %}
+<section class="body page">
+ <h1 class="page-title">Erreur 404</h1>
+ La page que vous cherchez n'existe pas.
+</section>
+{% endblock content %}
diff --git a/extras/htaccess b/extras/htaccess
new file mode 100644
index 0000000..c1e90ab
--- /dev/null
+++ b/extras/htaccess
@@ -0,0 +1,4 @@
+ErrorDocument 404 /404.html
+
+# Redirection pour les flux rss restés sous wordpress
+Redirect /feed/ /feed
diff --git a/pelicanconf.py b/pelicanconf.py
index 9165b21..d20f05c 100755
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -9,8 +9,6 @@ TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'fr'
-#ARTICLE_DIR = 'articles'
-
# Blogroll
#LINKS = (('Pelican', 'http://docs.notmyidea.org/alexis/pelican/'),
# ('Python.org', 'http://python.org'),
@@ -32,10 +30,15 @@ TAG_FEED_ATOM = 'feeds/%s.atom'
ARTICLE_URL = u'{date:%Y}/{date:%m}/{slug}/'
ARTICLE_SAVE_AS = u'{date:%Y}/{date:%m}/{slug}/index.html'
+
DISQUS_SITENAME='chimrod'
THEME = 'theme'
TYPOGRIFY = True
+TEMPLATE_PAGES = {'../extras/404.html': '404.html'}
+FILES_TO_COPY = (
+ ('../extras/htaccess', '.htaccess'),
+)
from pelican.plugins import related_posts
PLUGINS = [related_posts]