From e6e5e9af62486952e9eb5c5adb06ba2775c5c92d Mon Sep 17 00:00:00 2001 From: Eric Bidelman Date: Tue, 16 Oct 2012 15:29:21 -0700 Subject: Support for classes on content
--- scripts/md/base.html | 12 ++++++------ scripts/md/render.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/md/base.html b/scripts/md/base.html index 919f967..9ccabd6 100644 --- a/scripts/md/base.html +++ b/scripts/md/base.html @@ -43,19 +43,19 @@ URL: https://code.google.com/p/io-2012-slides {% for slide in slides %} - + {% if 'segue' in slide.class %}
-

{{ slide.title }}

-

{{ slide.subtitle }}

+

{{- slide.title -}}

+

{{- slide.subtitle -}}

{% else %}
-

{{ slide.title }}

-

{{ slide.subtitle }}

+

{{- slide.title -}}

+

{{- slide.subtitle -}}

-
+
{{- slide.content -}}
{% endif %} diff --git a/scripts/md/render.py b/scripts/md/render.py index fe667d8..fa4aaf7 100755 --- a/scripts/md/render.py +++ b/scripts/md/render.py @@ -9,7 +9,7 @@ def process_slides(): with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile: md = codecs.open('slides.md', encoding='utf8').read() md_slides = md.split('\n---\n') - print len(md_slides) + print 'Compiled %s slides.' % len(md_slides) slides = [] # Process each slide separately. -- cgit v1.2.3