Browse Source

ajout des premieres configurations de pelican et de publication

pull/1/head
Victor 7 years ago
parent
commit
70c741ec6e
2 changed files with 67 additions and 0 deletions
  1. +43
    -0
      pelicanconf.py
  2. +24
    -0
      publishconf.py

+ 43
- 0
pelicanconf.py View File

@ -0,0 +1,43 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Victor'
SITENAME = u'Blog de Victor Hery'
SITEURL = ''
DEFAULT_CATEGORY = 'Accueil'
PATH = 'content'
STATIC_PATHS = ['images']
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}.html'
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}.html'
TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'fr'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = (('Static blog with Pelican', 'http://getpelican.com/'),
('Un blog où l\'on parle d\'openvz, de QOS et d\'auto-hébergement', 'http://blog.developpeur-neurasthenique.fr/'),)
# Social widget
#SOCIAL = (('You can add links in your config file', '#'),
# ('Another social link', '#'),)
SOCIAL = ''
DEFAULT_PAGINATION = 10
DEFAULT_METADATA = {
'status': 'draft',
'lang': 'fr',
}
# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

+ 24
- 0
publishconf.py View File

@ -0,0 +1,24 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
SITEURL = 'https://blog.victor-hery.com'
RELATIVE_URLS = True
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'
DELETE_OUTPUT_DIRECTORY = True
# Following items are often useful when publishing
#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""

Loading…
Cancel
Save