pelicanconf.py 2.94 KB
Newer Older
Houtan Bastani's avatar
Houtan Bastani committed
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

LOAD_CONTENT_CACHE = False
DELETE_OUTPUT_DIRECTORY = False

DEFAULT_LANG = 'en'
DEFAULT_DATE_FORMAT = ' %B %-d, %Y'

Houtan Bastani's avatar
Houtan Bastani committed
11 12
LOCALE = ('en_US', 'utf8',  # On linux
          'en_US', 'UTF-8') # On macOS
Houtan Bastani's avatar
Houtan Bastani committed
13 14 15 16

AUTHOR = 'Macroeconomic Observatory'
SITENAME = 'Macroeconomic Observatory'
# HIDE_SITENAME = True
Houtan Bastani's avatar
Houtan Bastani committed
17
SITEURL = '..'
Houtan Bastani's avatar
Houtan Bastani committed
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

BANNER_SUBTITLE = \
    'Providing free and state-of-the-art tools for macroeconomic analysis.'

DISPLAY_CATEGORY_IN_BREADCRUMBS = True

SHOW_ARTICLE_AUTHOR = True
DISPLAY_ARTICLE_INFO_ON_INDEX = True
DISPLAY_TAGS_INLINE = True

DIRECT_TEMPLATES = (
    'archives',
    'authors',
    'categories',
    'index',
    'search',
    'tags',
    )

PATH = 'content'

TIMEZONE = 'Europe/Paris'

DEFAULT_LANG = 'en'

# Feed generation is usually not desired when developing
# FEED_ALL_ATOM = 'feeds/all.atom.xml'
# TAG_FEED_ATOM = 'feeds/tag-%s.atom.xml'
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
FEED_ALL_RSS = 'feeds/all.rss.xml'
Houtan Bastani's avatar
Houtan Bastani committed
51
TAG_FEED_RSS = 'feeds/{slug}.rss.xml'
Houtan Bastani's avatar
Houtan Bastani committed
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
RSS_FEED_SUMMARY_ONLY = False

# Blogroll
LINKS = (
    ('Dynare', 'http://www.dynare.org/'),
    ('DB.nomics', 'https://db.nomics.world/'),
    ('R-bloggers', 'http://www.r-bloggers.com/'),
    )

# Social widget
SOCIAL = (
    ('Gitlab', 'https://git.nomics.world/macro'),
    ('Twitter', 'https://twitter.com/obsmacro'),
    )

DEFAULT_PAGINATION = 5

TWITTER_USERNAME = 'obsmacro'
TWITTER_WIDGET_ID = '573544104640049152'

ARTICLE_URL = 'article/{date:%Y}-{date:%m}/{slug}/'
ARTICLE_SAVE_AS = 'article/{date:%Y}-{date:%m}/{slug}/index.html'
PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = '{slug}.html'

TAGS_URL = 'tags.html'

TAG_CLOUD_MAX_ITEMS = 15

RELATED_POSTS_MAX = 4

HIDE_SIDEBAR = True
DISPLAY_BREADCRUMBS = True
MATH_JAX = {'responsive': 'True'}

# Plugins.
PLUGIN_PATHS = ['./plugins']
PLUGINS = [
    # 'feed_summary',
    # 'liquid_tags.img',
    # 'liquid_tags.notebook',
    # 'liquid_tags.video',
    # 'liquid_tags.youtube',
    'pelican-cite',
    'related_posts',
    'render_math',
    'rmd_reader',
    'simple_footnotes',
    'tipue_search',
    ]

MENUITEMS = (
    ('About', '/about.html'),
    )
DISPLAY_PAGES_ON_MENU = False
DISPLAY_CATEGORIES_ON_MENU = True

# Themes
THEME = "./theme"

MARKUP = 'md'

PYGMENTS_STYLE = 'trac'
TYPOGRIFY = True

STATIC_PATHS = [
    'images',
    'notebooks',
    'figure']
# SITELOGO = 'images/obsmacro.svg'
# SITELOGO_SIZE = 180

RMD_READER_RENAME_PLOT = 'directory'
RMD_READER_KNITR_OPTS_CHUNK = {'fig.path': 'figure/'}

Houtan Bastani's avatar
Houtan Bastani committed
127
LOAD_CONTENT_CACHE = False
Houtan Bastani's avatar
Houtan Bastani committed
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
PUBLICATIONS_SRC = 'content/biblio.bib'

SHARIFF = True
SHARIFF_LANG = 'en'
SHARIFF_THEME = 'white'
SHARIFF_SERVICES = '["twitter"]'
# SHARIFF_BACKEND_URL =

# License
CC_LICENSE = "CC-BY-SA"

# Uncomment following line if you want document-relative URLs when developing.
# RELATIVE_URLS = True

# Piwik configuration
PIWIK_URL = 'analytics.nomics.world'
PIWIK_SITE_ID = 3