summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/builder/base.py6
-rw-r--r--app/notes/build.py8
2 files changed, 7 insertions, 7 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):
diff --git a/app/notes/build.py b/app/notes/build.py
index 884c114..4923baf 100644
--- a/app/notes/build.py
+++ b/app/notes/build.py
@@ -21,13 +21,13 @@ class BuildNotes(Build):
for entry in self.queryset():
c = Context({'object': entry, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL, 'SITE_URL':settings.SITE_URL})
t = render_to_string('details/note.html', c).encode('utf-8')
- path = 'notes/%s/' % (entry.date_created.strftime("%Y/%m").lower())
+ path = 'field-notes/%s/' % (entry.date_created.strftime("%Y/%m").lower())
self.write_file(path, t, 'html', entry.slug)
s = render_to_string('details/note.txt', c).encode('utf-8')
self.write_file(path, s, 'txt', entry.slug)
def build_archive(self):
- path = 'notes/'
+ path = 'field-notes/'
c = Context({
'object_list': self.queryset(),
'MEDIA_URL': settings.BAKED_MEDIA_URL,
@@ -47,7 +47,7 @@ class BuildNotes(Build):
'object_list': qs
})
t = render_to_string('archives/notes_date.html', c).encode('utf-8')
- fpath = 'notes/%s/' % (year)
+ fpath = 'field-notes/%s/' % (year)
self.write_file(fpath, t)
def build_archive_month(self):
@@ -63,5 +63,5 @@ class BuildNotes(Build):
'object_list': qs,
})
t = render_to_string('archives/notes_date.html', c).encode('utf-8')
- fpath = 'notes/%s/%s/' % (year, month)
+ fpath = 'field-notes/%s/%s/' % (year, month)
self.write_file(fpath, t)