aboutsummaryrefslogtreecommitdiff
path: root/scripts/md
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/md')
-rw-r--r--scripts/md/base.html12
-rwxr-xr-xscripts/md/render.py2
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
43</slide> 43</slide>
44 44
45{% for slide in slides %} 45{% for slide in slides %}
46<slide class="{{ slide.class }}"> 46<slide {% if slide.class %}class="{{- slide.class -}}"{% endif %}>
47 {% if 'segue' in slide.class %} 47 {% if 'segue' in slide.class %}
48 <aside class="gdbar"><img src="images/google_developers_icon_128.png"></aside> 48 <aside class="gdbar"><img src="images/google_developers_icon_128.png"></aside>
49 <hgroup class="auto-fadein"> 49 <hgroup class="auto-fadein">
50 <h2>{{ slide.title }}</h2> 50 <h2>{{- slide.title -}}</h2>
51 <h3>{{ slide.subtitle }}</h3> 51 <h3>{{- slide.subtitle -}}</h3>
52 </hgroup> 52 </hgroup>
53 {% else %} 53 {% else %}
54 <hgroup> 54 <hgroup>
55 <h2>{{ slide.title }}</h2> 55 <h2>{{- slide.title -}}</h2>
56 <h3>{{ slide.subtitle }}</h3> 56 <h3>{{- slide.subtitle -}}</h3>
57 </hgroup> 57 </hgroup>
58 <article> 58 <article {% if slide.content_class %}class="{{- slide.content_class -}}"{% endif %}>
59 {{- slide.content -}} 59 {{- slide.content -}}
60 </article> 60 </article>
61 {% endif %} 61 {% 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():
9 with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile: 9 with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile:
10 md = codecs.open('slides.md', encoding='utf8').read() 10 md = codecs.open('slides.md', encoding='utf8').read()
11 md_slides = md.split('\n---\n') 11 md_slides = md.split('\n---\n')
12 print len(md_slides) 12 print 'Compiled %s slides.' % len(md_slides)
13 13
14 slides = [] 14 slides = []
15 # Process each slide separately. 15 # Process each slide separately.