baseof.reveal.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. {{ partial "layout/head" . }}
  5. {{ partial "layout/theme" . }}
  6. <!-- To insert markup before the closing head tag for all presentations,
  7. create layouts/partials/reveal-hugo/head.html -->
  8. {{- partial "reveal-hugo/head" . -}}
  9. <!-- To insert markup at the end of the head tag for a specific presentation,
  10. create layouts/partials/{section}/reveal-hugo/head.html -->
  11. {{- $sectionHeadPartial := printf "%s/reveal-hugo/head" (.Page.Section | default "home") -}}
  12. {{- if fileExists (printf "layouts/partials/%s.html" $sectionHeadPartial) -}}{{ partial $sectionHeadPartial . }}{{- end }}
  13. </head>
  14. <body>
  15. {{ if .Param "logo.src" }}
  16. <style>
  17. #logo {
  18. position: absolute;
  19. top: {{ if .Param "logo.top"}}{{ .Param "logo.top" }}{{ else if .Param "logo.diag" }}{{ .Param "logo.diag" }}{{ else }}1%{{ end }};
  20. left: {{ if .Param "logo.top"}}{{ .Param "logo.left" }}{{ else if .Param "logo.diag" }}{{ .Param "logo.diag" }}{{ else }}1%{{ end }};
  21. width: {{ if .Param "logo.width"}}{{ .Param "logo.width" }}{{ else }}15%{{ end }};
  22. }
  23. </style>
  24. <img id="logo" src="{{ .Param "logo.src" }}" alt="{{ .Param "logo.alt" }}">
  25. {{ end }}
  26. <div class="reveal">
  27. <div class="slides">
  28. {{- block "main" . -}}{{- end -}}
  29. </div>
  30. <!-- To insert markup at the end of the .reveal tag for all presentations,
  31. create layouts/partials/reveal-hugo/end.html -->
  32. {{- partial "reveal-hugo/end" . -}}
  33. <!-- To insert markup at the end of the .reveal tag for a specific presentation,
  34. create layouts/partials/{section}/reveal-hugo/end.html -->
  35. {{- $sectionHeadPartial := printf "%s/reveal-hugo/end" (.Page.Section | default "home") -}}
  36. {{- if fileExists (printf "layouts/partials/%s.html" $sectionHeadPartial) -}}{{ partial $sectionHeadPartial . }}{{- end }}
  37. </div>
  38. {{- partial "layout/javascript" . }}
  39. <!-- To insert markup before the closing body tag for all presentations,
  40. create layouts/partials/reveal-hugo/body.html -->
  41. {{- partial "reveal-hugo/body" . }}
  42. <!-- To insert markup at the end of the head tag for a specific presentation,
  43. create layouts/partials/{section}/reveal-hugo/body.html -->
  44. {{- $sectionBodyPartial := printf "%s/reveal-hugo/body" (.Page.Section | default "home") -}}
  45. {{- if fileExists (printf "layouts/partials/%s.html" $sectionBodyPartial) -}}{{ partial $sectionBodyPartial . }}{{- end }}
  46. </body>
  47. </html>