comparison __bgn/import_blogophile.py @ 3:c3115da3ff73

More tweaking. Trying pelican-bootstrap3 theme.
author Brian Neal <bgneal@gmail.com>
date Thu, 30 Jan 2014 21:44:15 -0600
parents b7be75ff95b0
children
comparison
equal deleted inserted replaced
2:b7be75ff95b0 3:c3115da3ff73
29 import re 29 import re
30 import time 30 import time
31 31
32 32
33 SRC_DIR = os.path.expanduser('~/coding/python/virtualenvs/blogofile/blog/_posts') 33 SRC_DIR = os.path.expanduser('~/coding/python/virtualenvs/blogofile/blog/_posts')
34 DST_DIR = os.path.expanduser('~/coding/python/venvs/blog/blog-pelican/content') 34 DST_DIR = os.path.expanduser('~/coding/python/venvs/blog/blog-pelican/content/Coding')
35 35
36 TITLE_RE = re.compile(r'^title: (?P<title>.*)$') 36 TITLE_RE = re.compile(r'^title: (?P<title>.*)$')
37 DATE_RE = re.compile(r'^date: (?P<year>\d{4})/' 37 DATE_RE = re.compile(r'^date: (?P<year>\d{4})/'
38 r'(?P<month>\d{1,2})/' 38 r'(?P<month>\d{1,2})/'
39 r'(?P<day>\d{1,2})\s*' 39 r'(?P<day>\d{1,2})\s*'
43 PELICAN_FMT = """\ 43 PELICAN_FMT = """\
44 {title} 44 {title}
45 {title_underline} 45 {title_underline}
46 46
47 :date: {date} 47 :date: {date}
48 :category: coding
49 :tags: {tags} 48 :tags: {tags}
50 :slug: {slug} 49 :slug: {slug}
51 :author: Brian Neal 50 :author: Brian Neal
52 51
53 {content} 52 {content}