Create Your Own Templates - Template Reference

Create your own templates (use headers, slides, name, etc.)

Headers

Use headers to reference headers (such as title, author, etc.) from your slide source (or from your slideshow.yml configuration) in your templates.

Example:


<meta name="author" content="{{ headers['author'] }}">

<title>{{ headers['title'] }} | by {{ headers['author'] }}</title>

Example 2:


<div class='slide'>
  <h1>{{ headers['title'] }}</h1>
  <h2>{{ headers['subtitle'] }}</h2>
  <h3>{{ headers['author'] }}</h3>
  <h4>{{ headers['company'] }}</h4>
</div>

Slides

Use slides to reference your slides. A slide includes the following fields:

Example:


{% for slide in slides %}
  <div class='slide'>
     {{ slide.content }}
  </div>
{% endfor %}

Example 2:


{% for slide in slides %}
  <div class='slide {{ slide.classes }}'>
     <header>{{ slide.header }}</header>
     <section>
        {{ slide.content_without_header }}
     </section>
  </div>
{% endfor %}

Filename

Use name to reference the basename of the passed in file e.g. microformats.text becomes microformats.

Example:


<link rel="stylesheet" href="{{name}}.css">

Questions? Comments?

Questions? Comments? Send them along to the wwwmake forum/mailing list. Thanks!

Edit Me! This website is a public GitHub repo. Please help by forking the project and adding to it.