From 702dc9deb63a15277ba3a3ee397933dbe7a6ffbc Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 16 Nov 2016 08:37:40 -0500 Subject: 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 --- app/builder/base.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'app/builder') 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 -- cgit v1.2.3-70-g09d2