first commit

This commit is contained in:
2025-06-25 15:54:11 +02:00
commit 23e651d13a
465 changed files with 30834 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
<p>$${{- .Inner | safeHTML }}$$</p>
{{ .Page.Store.Set "hasMath" true -}}

View File

@@ -0,0 +1,4 @@
<div class="mermaid">
{{- .Inner | safeHTML }}
</div>
{{ .Page.Store.Set "hasMermaid" true }}

View File

@@ -0,0 +1,53 @@
<!doctype html>
<html lang="en">
<head>
{{ partial "layout/head" . -}}
{{ partial "layout/theme" . -}}
{{ $plugins := partial "internal/plugins" . -}}
{{- range $plugins }}
{{- with .css }}
<link rel="stylesheet" href="{{ . | relURL }}"> {{- end -}}
{{ end -}}
<!-- To insert markup before the closing head tag for all presentations,
create layouts/partials/reveal-hugo/head.html -->
{{- partial "reveal-hugo/head" . -}}
<!-- To insert markup at the end of the head tag for a specific presentation,
create layouts/partials/{section}/reveal-hugo/head.html -->
{{- $sectionHeadPartial := printf "%s/reveal-hugo/head" (.Page.Section | default "home") -}}
{{- if fileExists (printf "layouts/partials/%s.html" $sectionHeadPartial) -}}{{ partial $sectionHeadPartial . }}{{- end }}
</head>
<body>
{{ if .Param "logo.src" }}
<style>
#logo {
position: absolute;
top: {{ if .Param "logo.top"}}{{ .Param "logo.top" }}{{ else if .Param "logo.diag" }}{{ .Param "logo.diag" }}{{ else }}1%{{ end }};
left: {{ if .Param "logo.top"}}{{ .Param "logo.left" }}{{ else if .Param "logo.diag" }}{{ .Param "logo.diag" }}{{ else }}1%{{ end }};
width: {{ if .Param "logo.width"}}{{ .Param "logo.width" }}{{ else }}15%{{ end }};
}
</style>
<img id="logo" src="{{ .Param "logo.src" }}" alt="{{ .Param "logo.alt" }}">
{{ end }}
<div class="reveal">
<div class="slides">
{{- block "main" . -}}{{- end -}}
</div>
<!-- To insert markup at the end of the .reveal tag for all presentations,
create layouts/partials/reveal-hugo/end.html -->
{{- partial "reveal-hugo/end" . -}}
<!-- To insert markup at the end of the .reveal tag for a specific presentation,
create layouts/partials/{section}/reveal-hugo/end.html -->
{{- $sectionHeadPartial := printf "%s/reveal-hugo/end" (.Page.Section | default "home") -}}
{{- if fileExists (printf "layouts/partials/%s.html" $sectionHeadPartial) -}}{{ partial $sectionHeadPartial . }}{{- end }}
</div>
{{- partial "layout/javascript" . }}
<!-- To insert markup before the closing body tag for all presentations,
create layouts/partials/reveal-hugo/body.html -->
{{- partial "reveal-hugo/body" . }}
<!-- To insert markup at the end of the head tag for a specific presentation,
create layouts/partials/{section}/reveal-hugo/body.html -->
{{- $sectionBodyPartial := printf "%s/reveal-hugo/body" (.Page.Section | default "home") -}}
{{- if fileExists (printf "layouts/partials/%s.html" $sectionBodyPartial) -}}{{ partial $sectionBodyPartial . }}{{- end }}
</body>
</html>

View File

@@ -0,0 +1,4 @@
{{ define "main" }}
{{ partial "reveal-hugo/slides" (slice .Page) }}
{{ partial "reveal-hugo/slides" (.Resources.ByType "page") }}
{{ end }}

View File

@@ -0,0 +1,4 @@
{{ define "main" }}
{{ partial "reveal-hugo/slides" (slice .Page) }}
{{ partial "reveal-hugo/slides" (where .Site.RegularPages "Type" "home") }}
{{ end }}

View File

@@ -0,0 +1,4 @@
{{ define "main" }}
{{ partial "reveal-hugo/slides" (slice .Page) }}
{{ partial "reveal-hugo/slides" (where .Pages "Kind" "page") }}
{{ end }}