Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ots-blog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
ots-blog
Commits
52df7660
Commit
52df7660
authored
1 year ago
by
James Vasile
Browse files
Options
Downloads
Patches
Plain Diff
Make feeds optional in dev
parent
2986865b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
website/feedconf.py
+10
-0
10 additions, 0 deletions
website/feedconf.py
website/pelicanconf.py
+18
-10
18 additions, 10 deletions
website/pelicanconf.py
website/publishconf.py
+1
-9
1 addition, 9 deletions
website/publishconf.py
with
29 additions
and
19 deletions
website/feedconf.py
0 → 100644
+
10
−
0
View file @
52df7660
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
'
This diff is collapsed.
Click to expand it.
website/pelicanconf.py
+
18
−
10
View file @
52df7660
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
...
...
This diff is collapsed.
Click to expand it.
website/publishconf.py
+
1
−
9
View file @
52df7660
...
...
@@ -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
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment