diff options
-rw-r--r-- | app/builder/base.py | 18 | ||||
-rw-r--r-- | app/builder/views.py | 2 | ||||
-rw-r--r-- | design/templates/base.html | 2 |
3 files changed, 3 insertions, 19 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index 9d219d4..cdd919f 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -217,7 +217,7 @@ class BuildWritingFeed(Build): qs = get_model('blog', 'entry').objects.filter(status__exact=1).order_by('-pub_date')[:20] c = Context({'object_list':qs,'SITE_URL':settings.SITE_URL}) t = render_to_string('feed.xml',c).encode('utf-8') - fpath = '%s' %('feed/',) + fpath = '%s' %('rss/',) self.write_file(fpath,t,'xml') class BuildMap(Build): @@ -257,21 +257,5 @@ class BuildContact(Build): fpath = '%sindex.html' %(path) self.write_file(fpath,str(response.content)) -class BuildAbout(Build): - def build(self): - model = get_model('chunks', 'Chunk') - qs = model.objects.filter(key__in=['about_top','about_middle','about_bottom']) - c = Context({ - 'object_list': qs, - 'IMAGES_URL' : settings.BAKED_IMAGES_URL, - 'MEDIA_URL':settings.BAKED_MEDIA_URL - }) - t = render_to_string('details/about.html',c).encode('utf-8') - path = '%sabout/' %(settings.BAKED_ROOT) - if not os.path.isdir(path): - os.makedirs(path) - fpath = '%sindex.html' %(path) - self.write_file(fpath,t) - #class BuildCodeSite(Build): diff --git a/app/builder/views.py b/app/builder/views.py index f7a4392..f266cb8 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -4,7 +4,7 @@ from django.shortcuts import render_to_response,get_object_or_404,redirect from django.template import RequestContext -from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPages, BuildPhotos,BuildAbout,BuildProjects,BuildSitemap,BuildContact +from builder.base import BuildWriting, BuildWritingFeed, BuildMap, BuildPages, BuildPhotos,BuildProjects,BuildSitemap,BuildContact def do_build(request): section = request.GET.get('id', '') diff --git a/design/templates/base.html b/design/templates/base.html index f2132eb..afb812c 100644 --- a/design/templates/base.html +++ b/design/templates/base.html @@ -50,7 +50,7 @@ <footer role="contentinfo"> <nav class="bl"> <ul> - <li><a href="http://feeds2.feedburner.com/luxagraf/blog" title="RSS feed">Subscribe</a></li> + <li><a href="http://luxagraf.net/rss/" title="RSS feed">Subscribe</a></li> <li><a href="http://twitter.com/luxagraf" rel="me" title="follow luxagraf on Twitter">@luxagraf</a></li> <li><a href="http://www.flickr.com/photos/luxagraf" rel="me" title="luxagraf on Flickr">Flickr</a></li> <li><a href="/contact/" title="contact luxagraf">Contact</a></li> |