{{- $reveal_cdn := $.Param "reveal_hugo.reveal_cdn" | default "https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.6.0" -}} {{- $highlight_cdn := $.Param "reveal_hugo.highlight_cdn" | default "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0" -}} {{ or .Page.Title .Site.Title }} {{ with $.Param "description" }}{{ end }} {{ with .Site.Author.name }}{{ end }} {{- $theme := $.Param "reveal_hugo.theme" | default "black" -}} {{- $custom_theme := $.Param "reveal_hugo.custom_theme" -}} {{- if $custom_theme -}} {{ else -}} {{- end -}} {{- $highlight_theme := $.Param "reveal_hugo.highlight_theme" | default "default" -}} {{- partial "reveal-hugo/head" . -}} {{- $sectionHeadPartial := printf "%s/reveal-hugo/head" (.Page.Section | default "home") -}} {{- if fileExists (printf "layouts/partials/%s.html" $sectionHeadPartial) -}}{{ partial $sectionHeadPartial . }}{{- end }} {{- block "main" . -}}{{- end -}} {{- partial "reveal-hugo/body" . }} {{- $sectionBodyPartial := printf "%s/reveal-hugo/body" (.Page.Section | default "home") -}} {{- if fileExists (printf "layouts/partials/%s.html" $sectionBodyPartial) -}}{{ partial $sectionBodyPartial . }}{{- end }}