Merge pull request #5 from sbruder/master

Make CDN URLs customizable
keep-around/453b08068cded937b0b1d5d260ecc931aef17e4d
Josh Dzielak 4 years ago committed by GitHub
commit 9dbc309792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      data/reveal_hugo.toml
  2. 4
      layouts/_default/baseof.reveal.html

@ -6,3 +6,6 @@ progress = true
history = true
center = true
transition = 'slide' # none/fade/slide/convex/concave/zoom
reveal_cdn = "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0"
highlight_cdn = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0"

@ -1,6 +1,6 @@
<!doctype html>
{{- $reveal_cdn := "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0" -}}
{{- $highlight_cdn := "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0" -}}
{{- $reveal_cdn := or .Page.Params.reveal_hugo.reveal_cdn .Site.Params.reveal_hugo.reveal_cdn .Site.Data.reveal_hugo.defaults.reveal_cdn "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0" -}}
{{- $highlight_cdn := or .Page.Params.reveal_hugo.highlight_cdn .Site.Params.reveal_hugo.highlight_cdn .Site.Data.reveal_hugo.defaults.highlight_cdn "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0" -}}
<html lang="en">
<head>
<meta charset="utf-8">

Loading…
Cancel
Save