Browse files

added feed service

  • Loading branch information...
1 parent 60293fa commit 341deca2bad858c1c6c337a5af73e1dddf3c2556 @dduan committed Jul 7, 2010
Showing with 18 additions and 5 deletions.
  1. +6 −4 docs/roadmap.txt
  2. +1 −0 sophie/models.py
  3. +11 −1 sophie/templates/sophie/sidebar.html
View
10 docs/roadmap.txt
@@ -1,16 +1,16 @@
-This is a list of features planned for a potential 1.0 release of Sophie.
-
django-sophie future 1.0 Features
=================================
+This is a list of features planned for a potential 1.0 release of Sophie.
+
* Blog Posting
* Category
* Feed
+* Sitemap
* Comments
* Code highlighting
* Pingback
* Tagging
-* Sitemap
* Wordpress import
* Blogger import
* Mobile friendly UI
@@ -19,4 +19,6 @@ django-sophie future 1.0 Features
* Export blog content to some XML format
* Creating pages
* Be independent of templates, aka have templatetags instead of raw template
-* Link roll
+* Links
+* Tests
+* Documentation
View
1 sophie/models.py
@@ -9,6 +9,7 @@ class Blog(models.Model):
slug = models.SlugField()
entry_per_page = models.PositiveIntegerField(default = 5)
feed_length = models.PositiveIntegerField(default = 15)
+ feed_service = models.CharField(max_length=200, blank=True)
highlight_code = models.BooleanField(default = True)
full_entry_in_page = models.BooleanField(default = True)
full_entry_in_feed = models.BooleanField(default = True)
View
12 sophie/templates/sophie/sidebar.html
@@ -1,4 +1,14 @@
-<div><a href="{% url blog_feed blog_slug=blog.slug %}"><h3>Feed</h3></a></div>
+<div>
+ <a href="
+ {% if blog.feed_service %}
+ {{ blog.feed_service}}
+ {% else %}
+ {% url blog_feed blog_slug=blog.slug %}
+ {% endif %}
+ ">
+ <h3>Feed</h3>
+ </a>
+</div>
<h3>Category</h3>
<ul>
{% for category in blog.get_categories %}

0 comments on commit 341deca

Please sign in to comment.