diff options
6 files changed, 68 insertions, 0 deletions
diff --git a/exampleSite/layouts/partials/highlightjs-linenumbers-example/reveal-hugo/body.html b/exampleSite/layouts/partials/highlightjs-linenumbers-example/reveal-hugo/body.html new file mode 100644 index 0000000..64a94d9 --- /dev/null +++ b/exampleSite/layouts/partials/highlightjs-linenumbers-example/reveal-hugo/body.html @@ -0,0 +1,6 @@ +<!-- hide Highlight.js line numbers --> +<style> + .hljs-ln-numbers { + display: none; + } +</style>
\ No newline at end of file diff --git a/exampleSite/layouts/partials/home/reveal-hugo/body.html b/exampleSite/layouts/partials/home/reveal-hugo/body.html new file mode 100644 index 0000000..1dba7f9 --- /dev/null +++ b/exampleSite/layouts/partials/home/reveal-hugo/body.html @@ -0,0 +1,9 @@ +<!-- This partial is included before the end of the body tag for only the 'example' presentation --> +<!-- A common use would be to add JavaScript to the page to customize interactions --> +<!-- The Reveal.js JavaScript API is located at https://github.com/hakimel/reveal.js/#api --> +<script type="text/javascript"> +// Log the current slide to the console when it changes +Reveal.addEventListener('slidechanged', function(event) { + console.log("🎞️ Slide is now " + event.indexh); +}); +</script> diff --git a/exampleSite/layouts/partials/home/reveal-hugo/end.html b/exampleSite/layouts/partials/home/reveal-hugo/end.html new file mode 100644 index 0000000..39d6fcd --- /dev/null +++ b/exampleSite/layouts/partials/home/reveal-hugo/end.html @@ -0,0 +1,4 @@ +<div class="line top"></div> +<div class="line bottom"></div> +<div class="line left"></div> +<div class="line right"></div> diff --git a/exampleSite/layouts/partials/home/reveal-hugo/head.html b/exampleSite/layouts/partials/home/reveal-hugo/head.html new file mode 100644 index 0000000..c99b743 --- /dev/null +++ b/exampleSite/layouts/partials/home/reveal-hugo/head.html @@ -0,0 +1,39 @@ +<!-- This partial is included before the end of the head tag for only the 'example' presentation --> +<!-- A common use would be to add CSS to the page to customize the theme --> +<style> +/* Add padding, margin and a hover effect on code samples */ +.reveal section pre { + box-shadow: none; + margin-top: 25px; + margin-bottom: 25px; + border: 1px solid lightgrey; +} +.reveal section pre:hover { + border: 1px solid grey; + transition: border 0.3s ease; +} +.reveal section pre > code { + padding: 10px; +} +.reveal table { + font-size: 0.65em; +} +/* For slide-specific CSS example */ +.reveal section.side-by-side h1 { + position: absolute; +} +.reveal section.side-by-side h1:first-of-type { + left: 25%; +} +.reveal section.side-by-side h1:nth-of-type(2) { + right: 25%; +} +.reveal section[data-background-image] a, +.reveal section[data-background-image] p, +.reveal section[data-background-image] h2 { + color: white; +} +.reveal section[data-background-image] a { + text-decoration: underline; +} +</style> diff --git a/exampleSite/layouts/partials/logo-example/reveal-hugo/body.html b/exampleSite/layouts/partials/logo-example/reveal-hugo/body.html new file mode 100644 index 0000000..b54ef2f --- /dev/null +++ b/exampleSite/layouts/partials/logo-example/reveal-hugo/body.html @@ -0,0 +1,9 @@ +<style> + #logo { + position: absolute; + top: 20px; + left: 20px; + width: 250px; + } +</style> +<img id="logo" src="{{ .Param "logo.src" }}" alt="{{ .Param "logo.alt" }}">
\ No newline at end of file diff --git a/exampleSite/layouts/partials/plugin-example/reveal-hugo/head.html b/exampleSite/layouts/partials/plugin-example/reveal-hugo/head.html new file mode 100644 index 0000000..7c4c42d --- /dev/null +++ b/exampleSite/layouts/partials/plugin-example/reveal-hugo/head.html @@ -0,0 +1 @@ +<link rel="stylesheet" href="/plugin/gallery/gallery.css">
\ No newline at end of file |
