Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmanc committed Jan 14, 2020
2 parents 8a39d60 + 6113829 commit dfac078
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Your presentation title
title: Jekyll and Reveal.js

# Your presentation description (optional)
description: A framework for easily creating beautiful presentations using HTML
Expand Down
5 changes: 2 additions & 3 deletions _layouts/reveal.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,13 @@
| replace:'<backgroundimageopacity>','<!-- .slide: data-background-opacity="'
| replace:'</backgroundimageopacity>','" -->'
%}{%
assign first_char = line
assign first_char = line | strip
| slice: 0,1
%}{%
if first_char == '+'
%}{%
assign processed_line = processed_line
| replace_first: '+',''
| prepend: '+ <!-- .element: class="fragment" -->'
| replace_first: '+','+ <!-- .element: class="fragment" -->'
%}{%
endif
%}{{ processed_line }}{% comment %}Following line break is important{% endcomment %}
Expand Down
1 change: 1 addition & 0 deletions _posts/0000-01-03-fragments.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ It's also possible to do fragments.
`+ This is a fragment`
+ This is a fragment
+ Your fragment may contain the ‘+’ character
+ You can also indent fragments

<fragment/>You can use &lt;fragment/&gt; to step other content.

0 comments on commit dfac078

Please sign in to comment.