diff options
author | luxagraf <sng@luxagraf.net> | 2015-03-09 15:56:21 +0000 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2015-03-09 15:56:21 +0000 |
commit | a1404266bd7ff7e94a5d5090933d705ff7991d68 (patch) | |
tree | 96d2ee81b8b977503181d715194de41dcfea16da | |
parent | d0275c466684ef73fe7ce90e2b926fa150732b25 (diff) |
added template for readme and fixed output function
-rw-r--r-- | app/builder/base.py | 3 | ||||
-rw-r--r-- | design/templates/details/readme.html | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index 5a479f3..d395239 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -148,8 +148,9 @@ class BuildWriting(Build): self.write_file('', t) def build_404(self): + c = Context() t = render_to_string('404.html', c).encode('utf-8') - self.write_file('', t) + self.write_file('', t, 'html', '404') class BuildPhotos(Build): def build(self): 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> |