diff options
author | luxagraf <sng@luxagraf.net> | 2016-11-16 08:37:40 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2016-11-16 08:37:40 -0500 |
commit | 702dc9deb63a15277ba3a3ee397933dbe7a6ffbc (patch) | |
tree | 000a8c9f72e8d97420473aca01d62ca422bdedc0 /app/builder | |
parent | b460162a8c744486857dae48c6afc1632c7115ba (diff) |
got rid of amp view and added date-based urls to allow for using the
same slug twice so long as it's in different months
Diffstat (limited to 'app/builder')
-rw-r--r-- | app/builder/base.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index 94f1eee..67a259e 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -123,19 +123,6 @@ class BuildNew(): self.write_file(path, response.content, ext='txt', filename=slug) - def build_amp_view(self): - ''' - Grab all the blog posts, render them to a template - string and write that out to the filesystem - ''' - for entry in self.get_model_queryset(): - # write AMP - response = self.client.get('%s.amp' % entry.get_absolute_url()) - path, slug = os.path.split(entry.get_absolute_url()) - path = '%s/' % path - self.write_file(path, response.content, ext='amp', filename=slug) - - def build_feed(self, url_name): """ Not called, but available for subclassing |