summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/builder/base.py5
-rw-r--r--design/templates/404.html4
-rw-r--r--design/templates/details/readme.html8
3 files changed, 15 insertions, 2 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index 6701cf1..2db5cb3 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -67,6 +67,7 @@ class BuildWriting(Build):
self.build_country_archive_pages()
self.build_region_archive_pages()
self.build_homepage()
+ self.build_404()
self.writing_year_archives()
self.writing_month_archives()
@@ -146,6 +147,10 @@ class BuildWriting(Build):
t = render_to_string(template, c).encode('utf-8')
self.write_file('', t)
+ def build_404(self):
+ c = Context()
+ t = render_to_string('404.html', c).encode('utf-8')
+ self.write_file('', t, 'html', '404')
class BuildPhotos(Build):
def build(self):
diff --git a/design/templates/404.html b/design/templates/404.html
index d2ed067..2e29130 100644
--- a/design/templates/404.html
+++ b/design/templates/404.html
@@ -27,9 +27,9 @@
<p>The hamster who fetches these pages has stepped out for a smoke break (he earns extra travel money over at the Philip Morris Labs where he poses as a rat and gets paid under the table).</p>
<p>The hamster who fetches these pages is actually at Phillip Morris Labs working right now in which case you'll just have to wait until he comes back here.</p>
- <p>The hamster who fetches the pages finally made enough extra travel money working nights at the Philip Morris Labs to actually travel and is no longer running this site at all, in fact he's sipping Mai Tai's in Indonesia even as we speak, laughing that semi-sinister but always endearing high pitched squeak of a laugh.</p>
+ <p>The hamster who fetches the pages finally made enough extra travel money working nights at the Philip Morris Labs to actually travel and is no longer running this site at all, in fact he's sipping Mai Tai's in Indonesia even as we speak, laughing that semi-sinister, but always endearing, high pitched squeak of a laugh.</p>
<p>The hamster may be innocent. Perhaps I was drunk and left the page in the back of a cab.</p>
- <p>Wait, why is this our fault? Why are you so quick to blame the hamster? This could be your fault. You might have man hands or thick, clumsy fingers that led you to type the wrong address. Or you might just be an idiot. Or you might be following the links of an idiot. See what happens when you visit other sites? Keep it simple, make the hamster happy. Limit your internet usage to luxagraf only.</p>
+ <p>Wait, why is this our fault? Why are you so quick to blame the hamster? This could be your fault. You might have man hands or thick, clumsy fingers that led you to type the wrong address. Or you might just be an idiot. Or you might be following the links of an idiot. See what happens when you visit other sites? Keep it simple, make the hamster happy. Limit your internet usage to luxagraf.net.</p>
<p>Of course it's also possible that you're ahead of me and the page simply hasn't been invented yet, which makes you a genius. And explains why the hamster couldn't find it.</p>
<p>It's also entirely possible that the page exists but the hamster doesn't want to show it to you. It maybe one of those "backroom" pages he has, where secret stuff beyond your wildest imaginings is happening even now, right this second, just behind this blank white curtain. Stuff which you can only guess at. You can ask the hamster for an invite. Just email a full body shot, two forms of ID and a credit card number for verification purposes.</p>
diff --git a/design/templates/details/readme.html b/design/templates/details/readme.html
new file mode 100644
index 0000000..4d42804
--- /dev/null
+++ b/design/templates/details/readme.html
@@ -0,0 +1,8 @@
+{% load typogrify_tags %}
+
+ <article role="main">
+ <h1 class="page--title">{{object.title|safe}}</h1>
+ <div class="post--article">
+ {{object.body_html|safe|smartypants|widont}}
+ </div>
+ </article>