Skip to content
Snippets Groups Projects
Commit 52df7660 authored by James Vasile's avatar James Vasile
Browse files

Make feeds optional in dev

parent 2986865b
No related branches found
No related tags found
No related merge requests found
FEED_DOMAIN = 'https://blog.opentechstrategies.com'
AUTHOR_FEED_ATOM = 'feeds/{slug}.author.atom.xml'
AUTHOR_FEED_RSS = 'feeds/{slug}.author.rss'
FEED_ALL_ATOM = 'feeds/all.atom.xml'
FEED_ALL_RSS = 'feeds/all.rss'
TAG_FEED_ATOM = 'feeds/{slug}.tag.atom.xml'
TAG_FEED_RSS = 'feeds/{slug}.tag.rss'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
CATEGORY_FEED_RSS = 'feeds/{slug}.rss'
import os
import sys
sys.path.append(os.curdir)
AUTHOR = 'The OTS Team'
SITENAME = 'Open Tech Strategies | Blog'
SITESUBTITLE = 'Maximum return from your open source investments.'
......@@ -10,16 +14,20 @@ TIMEZONE = 'America/New_York'
DEFAULT_LANG = 'en'
# We don't want feeds while we're testing
FEED_DOMAIN = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
FEED_ALL_ATOM = None
FEED_ALL_RSS = None
TAG_FEED_ATOM = None
TAG_FEED_RSS = None
CATEGORY_FEED_ATOM = None
CATEGORY_FEED_RSS = None
FEEDS_ENABLED = True
if FEEDS_ENABLED == True:
from feedconf import *
else:
# We don't want feeds while we're testing
FEED_DOMAIN = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
FEED_ALL_ATOM = None
FEED_ALL_RSS = None
TAG_FEED_ATOM = None
TAG_FEED_RSS = None
CATEGORY_FEED_ATOM = None
CATEGORY_FEED_RSS = None
TRANSLATION_FEED_ATOM = None # we only post in english and no translations
......
......@@ -10,15 +10,7 @@ from pelicanconf import *
SITEURL = 'https://blog.opentechstrategies.com'
RELATIVE_URLS = False
FEED_DOMAIN = 'https://blog.opentechstrategies.com'
AUTHOR_FEED_ATOM = 'feeds/{slug}.author.atom.xml'
AUTHOR_FEED_RSS = 'feeds/{slug}.author.rss'
FEED_ALL_ATOM = 'feeds/all.atom.xml'
FEED_ALL_RSS = 'feeds/all.rss'
TAG_FEED_ATOM = 'feeds/{slug}.tag.atom.xml'
TAG_FEED_RSS = 'feeds/{slug}.tag.rss'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
CATEGORY_FEED_RSS = 'feeds/{slug}.rss'
from feedconf import *
SITEURL = 'https://blog.opentechstrategies.com'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment