{{/* Present Baseof - Presentation output only */}} {{- $language_code := site.LanguageCode | default "en-us" -}} {{/* Asset versions */}} {{ $cdn_url_reveal := "https://cdn.jsdelivr.net/npm/reveal.js@5.0.4" }} {{ $mermaid_version := "9.1.3" }} {{ $mermaid_sri := "sha256-TIYL00Rhw/8WaoUhYTLX9SKIEFdXxg+yMWSLVUbhiLg=" }} {{ with site.Home.OutputFormats.Get "WebAppManifest" }} {{ end }} {{ $landing_url := .Permalink }} {{ with .OutputFormats.Get "HTML" }} {{ $landing_url = .Permalink }} {{ end }} {{ .Title }} | {{ site.Params.hugoblox.identity.name | default site.Title }} {{/* Load Reveal CSS */}} {{- $theme := $.Param "slides.theme" | default "black" -}} {{/* Hugo Chroma Syntax Highlighter */}} {{ $hl_theme := $.Param "slides.highlight_style" | default "dracula" }} {{ $hl_theme_path := printf "css/libs/chroma/%s.css" $hl_theme }} {{ if fileExists (printf "assets/%s" $hl_theme_path) }} {{ $hl_theme_css := resources.Get $hl_theme_path | minify }} {{ end }} {{/* Reveal print styles (paper or PDF) */}} {{ block "main" . }}{{ end }} {{/* Load Reveal and plugins */}} {{/* Load Mermaid if enabled */}} {{ if $.Param "slides.diagram" | default false}} {{ printf "" (printf "https://cdn.jsdelivr.net/npm/mermaid@%s/dist/mermaid.min.js" $mermaid_version) $mermaid_sri | safeHTML }} {{ end }} {{/* Initialize Reveal */}} {{ $slidejs := resources.Get "js/hugoblox-slides.js" | js.Build (dict "params" (dict "slides" $.Params.slides )) | fingerprint }} {{ partial "functions/get_hook" (dict "hook" "body-end" "context" .) }}