From f7a91f5217bbdb1d2d6397ce5b5916596f510823 Mon Sep 17 00:00:00 2001 From: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> Date: Fri, 24 Dec 2021 05:19:01 +0800 Subject: [PATCH] feat: convert slides from Cloudflare to JSDelivr CDN (#2513) Help support sites in China where Cloudflare's CDNJS can be blocked/throttled. --- wowchemy/layouts/slides/baseof.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/wowchemy/layouts/slides/baseof.html b/wowchemy/layouts/slides/baseof.html index 36d02105..9a65d30c 100644 --- a/wowchemy/layouts/slides/baseof.html +++ b/wowchemy/layouts/slides/baseof.html @@ -5,7 +5,7 @@ {{ .Scratch.Set "media_dir" $media_dir }} {{ $css := site.Data.assets.css }} - {{ $cdn_url_reveal := "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.1.0" }} + {{ $cdn_url_reveal := "https://cdn.jsdelivr.net/npm/reveal.js@4.1.0" }} {{ $js := site.Data.assets.js }} @@ -16,7 +16,7 @@ {{ if site.Home.OutputFormats.Get "WebAppManifest" }} {{ end }} - + @@ -24,9 +24,9 @@ {{ .Title }} | {{ site.Title }} - + {{- $theme := $.Param "slides.theme" | default "black" -}} - + {{- $highlight_style := $.Param "slides.highlight_style" | default "dracula" -}} {{ printf "" (printf $css.highlight.url $css.highlight.version $highlight_style) | safeHTML }} @@ -39,13 +39,13 @@ {{ block "main" . }}{{ end }} - - - - - - - + + + + + + + {{/* Third-party Reveal plugins. */}} {{ if $.Param "slides.reveal_options.menu_enabled" | default true}}