Skip to content

Commit

Permalink
document preamble shown only on title slide (fixes hakimel#49, hakime…
Browse files Browse the repository at this point in the history
  • Loading branch information
obilodeau committed Oct 4, 2015
1 parent b3e7466 commit 1e3a1f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,7 @@ Defaults to none
|===

If you want to build a custom theme or customize an existing one you should look at the https://github.com/hakimel/reveal.js/blob/master/css/theme/README.md[reveal.js documentation] and use the `revealjs_customtheme` AsciiDoc attribute to activate it.

== Minimum Requirements

* asciidoctor 1.5.0
6 changes: 0 additions & 6 deletions templates/slim/block_preamble.html.slim
Original file line number Diff line number Diff line change
@@ -1,6 +0,0 @@
#preamble
.sectionbody=content
- if (attr? :toc) && (attr? 'toc-placement', 'preamble')
#toc class=(attr 'toc-class', 'toc')
#toctitle=(attr 'toc-title')
=Asciidoctor::HTML5::DocumentTemplate.outline(@document, (attr :toclevels, 2).to_i)
3 changes: 3 additions & 0 deletions templates/slim/document.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ html lang=(attr :lang, 'en' unless attr? :nolang)
- unless notitle || !has_header?
section
h2=@header.title
- preamble = @document.find_by context: :preamble
- if preamble.length > 0
=preamble.pop.content
p: small=author
=content
script src="#{revealjsdir}/lib/js/head.min.js"
Expand Down

0 comments on commit 1e3a1f3

Please sign in to comment.