Skip to content

Commit

Permalink
fix: Add refURL cf. #105
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Feb 4, 2020
1 parent 34e71a6 commit 7044a63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
6 changes: 4 additions & 2 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
{{ partial "head/general" . }}

{{ with $.Params.slide }}
<link rel="stylesheet" href="/revealjs-v3.9.2/css/reveal.css">
<link rel="stylesheet" href="/revealjs-v3.9.2/css/theme/white.css">
{{ $cssMain := relURL "/revealjs-v3.9.2/css/reveal.css" }}
{{ $cssTheme := relURL "/revealjs-v3.9.2/css/theme/white.css" }}
<link rel="stylesheet" href="{{ $cssMain }}">
<link rel="stylesheet" href="{{ $cssTheme }}">
{{ else }}
<style>
{{ $bulmaCSS := resources.Get "scss/bulma.scss" | toCSS | minify }}
Expand Down
15 changes: 8 additions & 7 deletions layouts/partials/revealjs/js.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<script src="/revealjs-v3.9.2/js/reveal.js"></script>
{{ $revealjs := relURL "/revealjs-v3.9.2/js/reveal.js" }}
<script src="{{ $revealjs }}"></script>

{{ $marked := "/revealjs-v3.9.2/plugin/markdown/marked.js" }}
{{ $markdown := "/revealjs-v3.9.2/plugin/markdown/markdown.js" }}
{{ $highlight := "/revealjs-v3.9.2/plugin/highlight/highlight.js" }}
{{ $zoom := "/revealjs-v3.9.2/plugin/zoom-js/zoom.js" }}
{{ $notes := "/revealjs-v3.9.2/plugin/notes/notes.js" }}
{{ $math := "/revealjs-v3.9.2/plugin/math/math.js" }}
{{ $marked := relURL "/revealjs-v3.9.2/plugin/markdown/marked.js" }}
{{ $markdown := relURL "/revealjs-v3.9.2/plugin/markdown/markdown.js" }}
{{ $highlight := relURL "/revealjs-v3.9.2/plugin/highlight/highlight.js" }}
{{ $zoom := relURL "/revealjs-v3.9.2/plugin/zoom-js/zoom.js" }}
{{ $notes := relURL "/revealjs-v3.9.2/plugin/notes/notes.js" }}
{{ $math := relURL "/revealjs-v3.9.2/plugin/math/math.js" }}
<script>
Reveal.initialize({
markdown: {
Expand Down

0 comments on commit 7044a63

Please sign in to comment.