{{ $cdn_url_reveal := "https://cdn.jsdelivr.net/npm/reveal.js@4.3.1" }} {{ $js := site.Data.assets.js }} {{ $css := site.Data.assets.css }} {{ with site.Home.OutputFormats.Get "WebAppManifest" }} {{ end }} {{ .Title }} | {{ site.Title }} {{/* Load Reveal CSS */}} {{- $theme := $.Param "slides.theme" | default "black" -}} {{/* Hugo Chroma Syntax Highlighter Initialization */}} {{ $hl_theme := $.Param "slides.highlight_style" | default "dracula" }} {{ $hl_theme_path := printf "css/libs/chroma/%s.css" $hl_theme }} {{ if not (fileExists (printf "assets/%s" $hl_theme_path)) }} {{ errorf "Hugo Chroma themes %s.css not found in `css/libs/chroma/`. See https://gohugo.io/commands/hugo_gen_chromastyles/" $hl_theme }} {{ else }} {{ $hl_theme_css := resources.Get $hl_theme_path | minify }} {{ end }} {{/* Load any Reveal CSS customizations */}} {{ $css_custom := resources.Get "css/reveal_custom.css" }} {{ $style := slice $css_custom | resources.Concat "css/reveal_custom.css" | resources.Minify }} {{ block "main" . }}{{ end }} {{/* Load Reveal and built-in plugins. */}} {{/* Load third-party Reveal plugins. */}} {{ if $.Param "slides.reveal_options.menu_enabled" | default true}} {{ end }} {{/* Load Mermaid. */}} {{ if $.Param "slides.diagram" | default false}} {{ printf "" (printf $js.mermaid.url $js.mermaid.version) $js.mermaid.sri | safeHTML }} {{ end }} {{/* Initialize slides. */}} {{ $slidejs := resources.Get "js/wowchemy-slides.js" | js.Build (dict "params" (dict "slides" $.Params.slides )) }}