{{/* Present Baseof - Presentation output only Hook Points Available: - slide-head-end: End of for custom CSS/JS - slide-header: Top of presentation (inside .reveal wrapper) - slide-footer: Bottom of presentation (inside .reveal wrapper) - slide-body-end: End of for custom JS Branding Configuration (site.Params.slides.branding or page front matter): logo: src: "media/logo.png" position: "top-left" # top-left, top-right, bottom-left, bottom-right width: "100px" title: show: true position: "bottom-left" author: show: true position: "bottom-right" */}} {{- $language_code := site.Language.Locale | 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" -}} {{/* Load branding CSS */}} {{ $branding_css := resources.Get "css/slides-branding.css" }} {{ with $branding_css }} {{ $branding_css = . | minify | fingerprint }} {{ end }} {{/* 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) */}} {{/* Hook: slide-head-end - Custom CSS/JS injection point */}} {{ partial "functions/slides_get_hook" (dict "hook" "slide-head-end" "context" .) }} {{ 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 }} {{/* Hook: slide-body-end - End of body for custom JS */}} {{ partial "functions/slides_get_hook" (dict "hook" "slide-body-end" "context" .) }}