diff options
-rw-r--r-- | extras/404.html | 8 | ||||
-rw-r--r-- | extras/htaccess | 4 | ||||
-rwxr-xr-x | pelicanconf.py | 7 |
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] |