-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #324 from Mogztter/issue-198-docinfo
resolves #198 resolves docinfo head, header and footer
- Loading branch information
Showing
7 changed files
with
104 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
# test stuff | ||
/examples/*.html | ||
!/examples/docinfo*.html | ||
/examples/reveal.js/ | ||
/examples/node_modules | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script src="https://platform.twitter.com/widgets.js"></script> | ||
<script> | ||
twttr.widgets.createTweet( | ||
'1214773648776744962', | ||
document.getElementById('tweet'), | ||
{ | ||
theme: 'white' | ||
} | ||
); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<meta name="generator" content="Asciidoctor reveal.js"> | ||
<style> | ||
#tweet { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// .docinfo-shared | ||
// Demonstration of docinfo attribute and we provide only head and footer values | ||
// :include: //head/*[last()] | //div[@class="slides"]/*[last()] | ||
// :header_footer: | ||
= Docinfo shared | ||
:docinfo: shared | ||
|
||
== Tweet | ||
|
||
// placeholder | ||
[#tweet] | ||
-- | ||
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
- bg_image = (attr? 'title-slide-background-image') ? (image_uri(attr 'title-slide-background-image')) : nil | ||
- bg_video = (attr? 'title-slide-background-video') ? (media_uri(attr 'title-slide-background-video')) : nil | ||
section.title(class = role | ||
data-state='title' | ||
data-transition=(attr 'title-slide-transition') | ||
data-transition-speed=(attr 'title-slide-transition-speed') | ||
data-background=(attr 'title-slide-background') | ||
data-background-size=(attr 'title-slide-background-size') | ||
data-background-image=bg_image | ||
data-background-video=bg_video | ||
data-background-video-loop=(attr 'title-slide-background-video-loop') | ||
data-background-video-muted=(attr 'title-slide-background-video-muted') | ||
data-background-opacity=(attr "background-opacity") | ||
data-background-iframe=(attr 'title-slide-background-iframe') | ||
data-background-color=(attr 'title-slide-background-color') | ||
data-background-repeat=(attr 'title-slide-background-repeat') | ||
data-background-position=(attr 'title-slide-background-position') | ||
data-background-transition=(attr 'title-slide-background-transition')) | ||
- if (_title_obj = doctitle partition: true, use_fallback: true).subtitle? | ||
h1=slice_text _title_obj.title, (_slice = header.option? :slice) | ||
h2=slice_text _title_obj.subtitle, _slice | ||
- else | ||
h1=@header.title | ||
- preamble = @document.find_by context: :preamble | ||
- unless preamble.nil? or preamble.length == 0 | ||
div.preamble=preamble.pop.content | ||
- unless author.nil? | ||
p.author: small=author |