_layouts/reveal.html in jekyll-theme-slides-0.1.2 vs _layouts/reveal.html in jekyll-theme-slides-0.1.3

- old
+ new

@@ -30,23 +30,23 @@ <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"> - <link rel="stylesheet" href="/assets/{{ site_reveal_path }}css/reveal.css"> - <link rel="stylesheet" href="/assets/{{ site_reveal_theme_path }}{{ site_reveal_theme }}" id="theme"> + <link rel="stylesheet" href="{{ site.baseurl }}/assets/{{ site_reveal_path }}css/reveal.css"> + <link rel="stylesheet" href="{{ site.baseurl }}/assets/{{ site_reveal_theme_path }}{{ site_reveal_theme }}" id="theme"> <!-- For syntax highlighting --> - <link rel="stylesheet" href="/assets/{{ site_reveal_path }}lib/css/zenburn.css"> + <link rel="stylesheet" href="{{ site.baseurl }}/assets/{{ site_reveal_path }}lib/css/zenburn.css"> <!-- If the query includes 'print-pdf', use the PDF print sheet --> <script> - document.write( '<link rel="stylesheet" href="/assets/{{ site_reveal_path }}css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); + document.write( '<link rel="stylesheet" href="{{ site.baseurl }}/assets/{{ site_reveal_path }}css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' ); </script> <!--[if lt IE 9]> - <script src="/assets/{{ site_reveal_path }}lib/js/html5shiv.js"></script> + <script src="{{ site.baseurl }}/assets/{{ site_reveal_path }}lib/js/html5shiv.js"></script> <![endif]--> </head> <body> @@ -56,12 +56,12 @@ {{ content }} </div> </div> - <script src="/assets/{{ site_reveal_path }}lib/js/head.min.js"></script> - <script src="/assets/{{ site_reveal_path }}js/reveal.js"></script> + <script src="{{ site.baseurl }}/assets/{{ site_reveal_path }}lib/js/head.min.js"></script> + <script src="{{ site.baseurl }}/assets/{{ site_reveal_path }}js/reveal.js"></script> <script> // Full list of configuration options available here: // https://github.com/hakimel/reveal.js#configuration Reveal.initialize({ @@ -79,19 +79,19 @@ {% endif %} // Optional libraries used to extend on reveal.js dependencies: [ - { src: '/assets/{{ site_reveal_path }}lib/js/classList.js', condition: function() { return !document.body.classList; } }, - { src: '/assets/{{ site_reveal_path }}plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, - { src: '/assets/{{ site_reveal_path }}plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, - { src: '/assets/{{ site_reveal_path }}plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, - { src: '/assets/{{ site_reveal_path }}plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, + { src: '{{ site.baseurl }}/assets/{{ site_reveal_path }}lib/js/classList.js', condition: function() { return !document.body.classList; } }, + { src: '{{ site.baseurl }}/assets/{{ site_reveal_path }}plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, + { src: '{{ site.baseurl }}/assets/{{ site_reveal_path }}plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, + { src: '{{ site.baseurl }}/assets/{{ site_reveal_path }}plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, + { src: '{{ site.baseurl }}/assets/{{ site_reveal_path }}plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, {% if site_reveal_notes_server %} - { src: '/assets/{{ site_reveal_path }}socket.io/socket.io.js', async: true }, - { src: '/assets/{{ site_reveal_path }}plugin/notes-server/client.js', async: true } + { src: '{{ site.baseurl }}/assets/{{ site_reveal_path }}socket.io/socket.io.js', async: true }, + { src: '{{ site.baseurl }}/assets/{{ site_reveal_path }}plugin/notes-server/client.js', async: true } {% else %} - { src: '/assets/{{ site_reveal_path }}plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } } + { src: '{{ site.baseurl }}/assets/{{ site_reveal_path }}plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } } {% endif %} {% if site.reveal_dependencies %} , {{ site.reveal_dependencies }} {% endif %} ]