mirror of
https://github.com/zrgn/zrgn.github.io
synced 2025-07-08 03:28:35 +00:00
Add framework for creating reveal.js presentations.
This commit is contained in:
parent
08053c05d8
commit
80850677e1
58 changed files with 6582 additions and 34 deletions
56
_layouts/presentation.html
Normal file
56
_layouts/presentation.html
Normal file
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE HTML>
|
||||
{% capture reveal_home %}{{ site.baseurl }}/assets/vendor/reveal{% endcapture %}
|
||||
{% assign theme = page.theme %}
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ page.title }}</title>
|
||||
|
||||
<meta name="description" content=" {{ page.description }} "/>
|
||||
<meta name="author" content="{{ page.author }}">
|
||||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
|
||||
|
||||
<link rel="stylesheet" href="{{ reveal_home }}/reveal.css">
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/assets/{{ theme }}" id="theme"/>
|
||||
|
||||
<!-- Printing and PDF exports -->
|
||||
<script type="text/javascript">
|
||||
var link = document.createElement( 'link' );
|
||||
link.rel = 'stylesheet';
|
||||
link.type = 'text/css';
|
||||
link.href = window.location.search.match( /print-pdf/gi ) ? '{{ site.baseurl }}/assets/pdf.css' : '{{ site.baseurl }}/assets/paper.css';
|
||||
document.getElementsByTagName( 'head' )[0].appendChild( link );
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script type="text/javascript" src="{{ reveal_home }}/reveal.js"></script>
|
||||
<script type="text/javascript" src="{{ reveal_home }}/plugin/markdown/markdown.js"></script>
|
||||
<script type="text/javascript" src="{{ reveal_home }}/plugin/notes/notes.js"></script>
|
||||
|
||||
<div class="reveal">
|
||||
<div class="slides">
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
// Full list of configuration options available at:
|
||||
// https://github.com/hakimel/reveal.js#configuration
|
||||
Reveal.initialize({
|
||||
controls: true,
|
||||
progress: true,
|
||||
history: true,
|
||||
center: true,
|
||||
width: 1600,
|
||||
height: 900,
|
||||
transition: 'slide', // none/fade/slide/convex/concave/zoom
|
||||
plugins: [ RevealMarkdown, RevealNotes ]
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue