examples.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!doctype html>
  2. <html {{ if eq .Page.Params.direction "rtl" }}lang="ar" dir="rtl"{{ else }}lang="en"{{ end }}{{ with .Page.Params.html_class }} class="{{ . }}"{{ end }}>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="description" content="">
  7. <meta name="author" content="{{ .Site.Params.authors }}">
  8. <meta name="generator" content="Hugo {{ hugo.Version }}">
  9. <title>{{ .Page.Title | markdownify }} · {{ .Site.Title | markdownify }} v{{ .Site.Params.docs_version }}</title>
  10. <link rel="canonical" href="{{ .Permalink }}">
  11. {{ with .Params.robots -}}
  12. <meta name="robots" content="{{ . }}">
  13. {{- end }}
  14. {{ partial "stylesheet" . }}
  15. {{ partial "favicons" . }}
  16. <style>
  17. .bd-placeholder-img {
  18. font-size: 1.125rem;
  19. text-anchor: middle;
  20. -webkit-user-select: none;
  21. -moz-user-select: none;
  22. user-select: none;
  23. }
  24. @media (min-width: 768px) {
  25. .bd-placeholder-img-lg {
  26. font-size: 3.5rem;
  27. }
  28. }
  29. </style>
  30. {{ range .Page.Params.extra_css }}
  31. {{ "<!-- Custom styles for this template -->" | safeHTML }}
  32. <link href="{{ . }}" rel="stylesheet">
  33. {{- end }}
  34. </head>
  35. <body{{ with .Page.Params.body_class }} class="{{ . }}"{{ end }}>
  36. {{ .Content }}
  37. {{ if ne .Page.Params.include_js false -}}
  38. {{- if eq hugo.Environment "production" -}}
  39. <script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.min.js" {{ printf "integrity=%q" .Site.Params.cdn.js_bundle_hash | safeHTMLAttr }} crossorigin="anonymous"></script>
  40. {{- else -}}
  41. <script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
  42. {{- end }}
  43. {{ range .Page.Params.extra_js -}}
  44. <script{{ with .async }} async{{ end }} src="{{ .src }}"{{ with .integrity }} {{ printf "integrity=%q" . | safeHTMLAttr }} crossorigin="anonymous"{{ end }}></script>
  45. {{- end -}}
  46. {{- end }}
  47. </body>
  48. </html>