-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #4 using new rss template and jinja2
not more dependent on PyRSS2Gen added url back as optional param to _update_indexes
- Loading branch information
Showing
4 changed files
with
34 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<rss version="2.0"> | ||
<channel><title>{{ title }}</title> | ||
<link>{{ url }}</link> | ||
<description>{{ description }}</description> | ||
<lastBuildDate>{{ last_build.strftime("%a, %d %b %Y %H:%M:%S %z") }}</lastBuildDate> | ||
<generator>Logya</generator> | ||
<docs>http://blogs.law.harvard.edu/tech/rss</docs> | ||
{% for item in items %} | ||
<item> | ||
<title>{{ item.title }}</title> | ||
<link>{{ base_url }}{{ item.url }}</link> | ||
<description>{{ item.description }}</description> | ||
<guid>{{ base_url }}{{ item.url }}</guid> | ||
<pubDate>{{ item.created.strftime("%a, %d %b %Y %H:%M:%S %z") }}</pubDate> | ||
</item> | ||
{% endfor %} | ||
</channel></rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
Jinja2==2.7.1 | ||
Markdown==2.3.1 | ||
MarkupSafe==0.18 | ||
PyRSS2Gen==1.1 | ||
PyYAML==3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
Jinja2==2.7.1 | ||
Markdown==2.3.1 | ||
MarkupSafe==0.18 | ||
PyRSS2Gen==1.1 | ||
PyYAML==3.10 | ||
nose==1.3.0 |