Skip to content

Commit

Permalink
Converting motivation.md to use slides template.
Browse files Browse the repository at this point in the history
Also modifed the Makefile to use the slides template for this file
instead of the generic template.

Note that we do not need a Markdown extension for deck.js because
Pandoc is doing Markdown-to-HTML conversion for us.
  • Loading branch information
gvwilson committed Nov 11, 2014
1 parent 8ed6f70 commit 25e776b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
8 changes: 7 additions & 1 deletion pages/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ all : commands
## preview : Build website locally for checking.
preview : $(DST_PAGES)

# Pattern to build a page with Pandoc.
# Pattern to build slides.
$(DST_DIR)/motivation.html : $(SRC_DIR)/motivation.md
pandoc -s -t html \
--template=../_layouts/slides \
-o $@ $<

# Pattern to build a generic page.
$(DST_DIR)/%.html : $(SRC_DIR)/%.md
pandoc -s -t html \
--title-prefix='Software Carpentry' \
Expand Down
24 changes: 13 additions & 11 deletions pages/motivation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@
layout: slides
title: Why Topic?
---
<section data-markdown>
<script type="text/template">
<section class="slide">
## Why Topic?
</script>
</section>
<section data-markdown>
<script type="text/template">
## Why not topic?
</script>

<section class="slide">
## More Explanation

* With
* Bullet
* Points
</section>
<section data-markdown>
<script type="text/template">
Thank you.
</script>

<section class="slide">
## Next Steps

Here we go!
</section>

0 comments on commit 25e776b

Please sign in to comment.