baseof.html 4.2 KB

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