-
Notifications
You must be signed in to change notification settings - Fork 1
/
pelicanconf.py
70 lines (58 loc) · 1.95 KB
/
pelicanconf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from __future__ import unicode_literals
import datetime
import os
import subprocess
# General settings
AUTHOR = 'Florian M. Wagner'
SITENAME = AUTHOR
SRCURL = 'https://github.com/florian-wagner/website'
SITEURL = 'https://www.fwagner.info'
# Path settings
DELETE_OUTPUT_DIRECTORY = True
PATH = 'content'
STATIC_PATHS = ['static', 'paper', 'javascript']
TIMEZONE = 'Europe/Paris'
SLUGIFY_SOURCE = 'basename'
PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = PAGE_URL
DIRECT_TEMPLATES = ()
ARTICLE_EXCLUDES = ['javascript']
EXTRA_PATH_METADATA = {
'static/favicon.ico': {'path': 'favicon.ico'}
}
DEFAULT_LANG = 'en'
MENUITEMS = (('About', ''),
('Curriculum Vitae', 'cv'),
('Dissertation', 'thesis'),
('Publications', 'publications'),
('Contact', 'contact'),
)
PLUGIN_PATHS = ['plugins']
PLUGINS = ['html_rst_directive', 'icons']
# Social widget
SOCIAL = (
('google-scholar', 'https://scholar.google.de/citations?hl=de&user=mi_Wm7kAAAAJ&view_op=list_works&sortby=pubdate'),
('researchgate', 'http://www.researchgate.net/profile/Florian_Wagner5'),
('orcid', 'http://orcid.org/0000-0001-7407-9741'),
('linkedin', 'https://www.linkedin.com/in/fmwagner'),
('xing', 'https://www.xing.com/profile/FlorianM_Wagner'),
('twitter', 'https://twitter.com/Fl0rianWagner'),
('github', 'https://github.com/florian-wagner')
)
DEFAULT_PAGINATION = False
# Get the current git commit hash
COMMIT = ''
process = subprocess.Popen('git rev-parse HEAD'.split(), cwd='.',
stdout=subprocess.PIPE)
git_hash = process.communicate()[0].strip().decode('utf-8')
if git_hash:
COMMIT = "{url}/commit/{commit}".format(
url=SRCURL, commit=git_hash, commit_link=git_hash)
# For modification date in footer
TODAY = datetime.date.today().isoformat()
DEFAULT_DATE = 'fs'
# Theme settings
THEME = 'themes/pure-single'
PROFILE_IMG_URL = '/static/fwagner.jpg'
COVER_IMG_URL = '/static/bg.jpg'
TAGLINE = 'Applied Geophysicist'