baseof.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html lang="{{ site.LanguageCode | default "en-us" }}">
  3. <head>
  4. {{ $cdn_url_reveal := "https://cdn.jsdelivr.net/npm/reveal.js@4.2.1" }}
  5. {{ $js := site.Data.assets.js }}
  6. {{ $css := site.Data.assets.css }}
  7. <meta charset="utf-8">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <meta name="generator" content="Wowchemy {{ site.Data.wowchemy.version }} for Hugo">
  11. {{ with site.Home.OutputFormats.Get "WebAppManifest" }}
  12. <link rel="manifest" href="{{ .RelPermalink }}">
  13. {{ end }}
  14. <link rel="icon" type="image/png" href="{{(partial "functions/get_icon" 32).RelPermalink}}">
  15. <link rel="apple-touch-icon" type="image/png" href="{{(partial "functions/get_icon" 192).RelPermalink}}">
  16. <link rel="canonical" href="{{ .Permalink }}">
  17. <title>{{ .Title }} | {{ site.Title }}</title>
  18. <link rel="stylesheet" href="{{ $cdn_url_reveal }}/dist/reveal.min.css">
  19. {{- $theme := $.Param "slides.theme" | default "black" -}}
  20. <link rel="stylesheet" href="{{ $cdn_url_reveal }}/dist/theme/{{ $theme }}.min.css">
  21. {{- $highlight_style := $.Param "slides.highlight_style" | default "dracula" -}}
  22. {{ printf "<link rel=\"stylesheet\" href=\"%s\" crossorigin=\"anonymous\" id=\"highlight-theme\">" (printf $css.highlight.url $css.highlight.version $highlight_style) | safeHTML }}
  23. {{ $css_custom := resources.Get "css/reveal_custom.css" }}
  24. {{ $style := slice $css_custom | resources.Concat "css/reveal_custom.css" | resources.Minify }}
  25. <link rel="stylesheet" href="{{ $style.RelPermalink }}">
  26. </head>
  27. <body>
  28. {{ block "main" . }}{{ end }}
  29. <script src="{{ $cdn_url_reveal }}/dist/reveal.min.js" crossorigin="anonymous"></script>
  30. <script src="{{ $cdn_url_reveal }}/plugin/markdown/markdown.min.js" crossorigin="anonymous"></script>
  31. <script src="{{ $cdn_url_reveal }}/plugin/highlight/highlight.min.js" crossorigin="anonymous"></script>
  32. <script src="{{ $cdn_url_reveal }}/plugin/notes/notes.min.js" crossorigin="anonymous"></script>
  33. <script src="{{ $cdn_url_reveal }}/plugin/search/search.min.js" crossorigin="anonymous"></script>
  34. <script src="{{ $cdn_url_reveal }}/plugin/math/math.min.js" crossorigin="anonymous"></script>
  35. <script src="{{ $cdn_url_reveal }}/plugin/zoom/zoom.min.js" crossorigin="anonymous"></script>
  36. {{/* Third-party Reveal plugins. */}}
  37. {{ if $.Param "slides.reveal_options.menu_enabled" | default true}}
  38. <script src="https://cdn.jsdelivr.net/npm/reveal.js-menu@2.1.0/plugin.js" integrity="sha256-M6JwAjnRAWmi+sbXURR/yAhWZKYhAw7YXnnLvIxrdGs=" crossorigin="anonymous"></script>
  39. <script src="https://cdn.jsdelivr.net/npm/reveal.js-menu@2.1.0/menu.js" integrity="sha256-l14dklFcW5mWar6w/9KaW0fWVerf3mYr7Wt0+rXzFAA=" crossorigin="anonymous"></script>
  40. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/reveal.js-menu@2.1.0/menu.css" integrity="sha256-0fU8HKLaTjgzfaV9CgSqbsN8ilA3zo6zK1M6rlgULd8=" crossorigin="anonymous">
  41. {{ end }}
  42. {{ if $.Param "slides.diagram" | default false}}
  43. {{ printf "<script src=\"%s\" integrity=\"%s\" crossorigin=\"anonymous\" title=\"mermaid\"></script>" (printf $js.mermaid.url $js.mermaid.version) $js.mermaid.sri | safeHTML }}
  44. {{ end }}
  45. {{ $slidejs := resources.Get "js/wowchemy-slides.js" | js.Build (dict "params" (dict "slides" $.Params.slides )) }}
  46. <script src="{{ $slidejs.RelPermalink }}"></script>
  47. </body>
  48. </html>