Skip to content

Commit a2c1107

Browse files
committed
removes print setup as not needed in reveal 4
Print formatting is supported by adding ?print-pdf query string.
1 parent 8814f1f commit a2c1107

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

layouts/partials/layout/javascript.html

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
<!-- Printing and PDF exports -->
44
<!-- use Hugo to create the right path for the print stylesheet, then conditionally include it -->
55
{{- $reveal_location := $.Param "reveal_hugo.reveal_cdn" | default "reveal-js" -}}
6-
<a href="{{ printf "%s/css/print/" $reveal_location | relURL }}" id="print-location" style="display: none;"></a>
7-
<script type="text/javascript">
8-
var printLocationElement = document.getElementById('print-location');
9-
var link = document.createElement('link');
10-
link.rel = 'stylesheet';
11-
link.type = 'text/css';
12-
link.href = printLocationElement.href + (window.location.search.match(/print-pdf/gi) ? 'pdf.css' : 'paper.css');
13-
document.getElementsByTagName('head')[0].appendChild(link);
14-
</script>
156

167
<!-- load Reveal.js javascripts -->
178
<script src="{{ printf "%s/dist/reveal.js" $reveal_location | relURL }}"></script>

0 commit comments

Comments
 (0)