123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*- #
- SITENAME = u'MediaGoblin'
- SITEURL = 'http://mediagoblin.org'
- FEED_DOMAIN = 'http://mediagoblin.org'
- TIMEZONE = 'America/Chicago'
- DEFAULT_LANG = u'en'
- MARKUP = ('md', 'rst', 'html')
- AUTHOR = u'Christopher Allan Webber'
- TYPOGRIFY = (True)
- # Content dirs
- #ARTICLE_DIR = ('entries/news')
- #PATH = ('entries/news')
- OUTPUT_PATH = ('output')
- DELETE_OUTPUT_DIRECTORY = (True)
- ARTICLE_EXCLUDES = (('pages',))
- THEME = ('theme')
- DEFAULT_PAGINATION = 10
- STATIC_PATHS = (['static/blog_images', 'static/download', 'static/images', 'static/irclogs', 'static/videos', 'pages',])
- TEMPLATE_PAGES = {"pages/404.html": "pages/404.html",
- "pages/about.html": "pages/about.html",
- "pages/campaign.html": "pages/campaign.html",
- "pages/video_iframe.html": "pages/video_iframe.html",
- "pages/campaign.es.html": "pages/campaign.es.html",
- "pages/join.html": "pages/join.html",
- "pages/logo.html": "pages/logo.html",
- "pages/tour.html": "pages/tour.html"}
- PLUGIN_PATH = "plugins"
- PLUGINS = ["html_rst_directive",]
- ARTICLE_URL = "news/{slug}.html"
- ARTICLE_SAVE_AS = "news/{slug}.html"
- DIRECT_TEMPLATES = ('index', 'blog')
- PAGINATED_DIRECT_TEMPLATES = ('index', 'blog')
- BLOG_SAVE_AS = 'news/index.html'
- FILENAME_METADATA = "(?P<slug>.*)"
- # Feeds, categories and tags
- FEED_ALL_ATOM = 'news/index.xml'
- CATEGORY_SAVE_AS = ('category/{slug}.html')
- DEFAULT_CATEGORY = 'entry'
- TAG_URL = ('tag/{slug}.html')
- TAG_SAVE_AS = ('tag/{slug}.html')
- # ONLY ENABLE RELATIVE URLS TO TEST - IT WILL HELP TO LOCALLY TEST THE THEME
- # SET RELATIVE URLS TO FALSE BEFORE PUSHING TO PRODUCTION
- RELATIVE_URLS = (False)
-
- # External Links - these can be used to generate the menus
- LINKS = (('news', 'http://mediagoblin.org/news/index.html'),
- ('tour', 'http://mediagoblin.org/pages/tour.html'),
- ('community', 'http://mediagoblin.org/pages/join.html'),
- ('bug tracker', 'http://issues.mediagoblin.org'),
- ('git repository', 'https://savannah.gnu.org/projects/mediagoblin'))
- # Blogroll
- # LINKS = (('Pelican', 'http://docs.notmyidea.org/alexis/pelican/'),
- # ('Python.org', 'http://python.org'),
- # ('Jinja2', 'http://jinja.pocoo.org'),
- # ('You can modify those links in your config file', '#'),)
- # Social widget
- SOCIAL = (('Identi.ca', 'http://identi.ca/mediagoblin'),
- ('Twitter', 'http://twitter.com/mediagoblin'),)
- def CAMPAIGN_DAYS_LEFT():
- import datetime
- daysleft = (datetime.date(2014, 4, 18) - datetime.date.today()).days
- if daysleft == 1:
- return "Only 1 day left... Support MediaGoblin!"
- elif daysleft == 0:
- return "Last day to donate... Support MediaGoblin!"
- elif daysleft > 0:
- return "%s days left... Support MediaGoblin!" % daysleft
- else:
- return "0 days left! Thanks for your support!"
|