summaryrefslogtreecommitdiff
path: root/app/builder/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/builder/base.py')
-rw-r--r--app/builder/base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index 34ecb4c..2845225 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -83,7 +83,7 @@ class BuildWriting(Build):
for entry in qs:
c = Context({'object': entry, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL})
t = render_to_string('details/entry.html', c).encode('utf-8')
- path = '/%s/' %(entry.pub_date.strftime("%Y/%m").lower())
+ path = '/jrnl/%s/' %(entry.pub_date.strftime("%Y/%m").lower())
slug = '%s' %(entry.slug)
self.write_file(path, t, 'html', slug)
s = render_to_string('details/entry.txt',c).encode('utf-8')
@@ -119,7 +119,7 @@ class BuildWriting(Build):
qs = entry.objects.filter(status__exact=1, pub_date__year=year).order_by('-pub_date')
c = Context({'type': 'year', 'date': year, 'object_list': qs})
t = render_to_string('archives/writing_date.html', c).encode('utf-8')
- fpath = '%s/' % (year)
+ fpath = 'jrnl/%s/' % (year)
self.write_file(fpath, t)
def writing_month_archives(self):
@@ -135,7 +135,7 @@ class BuildWriting(Build):
c = Context({'type': 'monthly', 'date': '%s %s' % (
month_full_name, year), 'object_list': qs, })
t = render_to_string('archives/writing_date.html', c).encode('utf-8')
- fpath = '%s/%s/' % (year, month)
+ fpath = 'jrnl/%s/%s/' % (year, month)
self.write_file(fpath, t)
def build_homepage(self):