Skip to content

Commit

Permalink
Add an Atom feed for the blog
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Apr 11, 2019
1 parent bbf9250 commit f1a5b25
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ cache:
install:
- pip install Lektor
- lektor plugins add markdown-higlighter
- lektor plugins add lektor-atom
- pip install https://github.com/eigengrau/lektor-atom.git
script: "lektor build"
deploy:
provider: script
Expand Down
11 changes: 11 additions & 0 deletions configs/atom.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[blog]
name = Quansight Labs
source_path = blog/
url_path = https://labs.quansight.org/blog/
filename = feed.xml # blog/feed.xml would be better but doesn't seem to work
items = site.query('/blog/').filter(F.type == 'blog-post')
item_model = blog-post

[main]
blog_author_field = author
blog_summary_field = short_description
1 change: 1 addition & 0 deletions qslabs_site.lektorproject
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ target = ghpages+https://Quansight-Labs/quansight-labs-site?cname=labs.quansight

[packages]
lektor-markdown-highlighter = 0.3.1
lektor-atom = 0.3

0 comments on commit f1a5b25

Please sign in to comment.