baseof.html 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <meta property="og:URL" content="{{ .Site.BaseURL }}"/>
  8. <meta property="og:site_name" content="{{ .Site.Title }}"/>
  9. <meta property="twitter:site" content="{{ .Site.Title }}"/>
  10. <meta property="og:type" content="website"/>
  11. {{ if .Params.noRobots }}
  12. <meta name="robots" content="noindex">
  13. {{ end }}
  14. {{ if .Description }}
  15. <meta name="description" content="{{ .Description }}"/>
  16. <meta property="og:description" content="{{ .Description }}"/>
  17. <meta property="twitter:description" content="{{ .Description }}"/>
  18. {{ else }}
  19. <meta name="description" content="{{ .Site.Params.meta.Description }}"/>
  20. <meta property="og:description" content="{{ .Site.Params.meta.Description }}"/>
  21. <meta property="twitter:description" content="{{ .Site.Params.meta.Description }}"/>
  22. {{ end }}
  23. {{ if .Params.Image }}
  24. <meta property="og:image" content="{{.Permalink}}{{ .Params.Image }}"/>
  25. <meta property="twitter:image" content="{{.Permalink}}{{ .Params.Image }}"/>
  26. {{ end }}
  27. {{ block "meta-extended" . }}
  28. {{end}}
  29. {{ if .Title }}
  30. <title>{{ .Title }}</title>
  31. <meta property="og:title" content="{{ .Title }}"/>
  32. <meta property="twitter:title" content="{{ .Title }}"/>
  33. {{ else }}
  34. <title>{{ .Site.Title }}</title>
  35. <meta property="og:title" content="{{ .Site.Title }}"/>
  36. <meta property="twitter:title" content="{{ .Site.Title }}"/>
  37. {{ end }}
  38. <!-- Style -->
  39. {{ with resources.Get "sass/main.scss" }}
  40. {{ $opts := dict "transpiler" "libsass" "targetPath" "css/style.css" }}
  41. {{ with . | toCSS $opts }}
  42. {{ if hugo.IsDevelopment }}
  43. <link rel="stylesheet" href="{{ .RelPermalink }}">
  44. {{ else }}
  45. {{ with . | minify | fingerprint }}
  46. <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
  47. {{ end }}
  48. {{ end }}
  49. {{ end }}
  50. {{ end }}
  51. {{ with resources.Get "styles.css" }}
  52. {{ if hugo.IsDevelopment }}
  53. <link rel="stylesheet" href="{{ .RelPermalink }}">
  54. {{ else }}
  55. {{ with . | minify | fingerprint }}
  56. <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
  57. {{ end }}
  58. {{ end }}
  59. {{ end }}
  60. </head>
  61. <body>
  62. {{ partial "navbar.html" . }}
  63. <section class="main">
  64. {{ .Params.robots }}
  65. <!-- Code that all your templates share, like a header -->
  66. {{ block "main" . }}
  67. <!-- The part of the page that begins to differ between templates -->
  68. {{ end }}
  69. </section>
  70. {{ partial "footer.html" . }}
  71. </div>
  72. </footer>
  73. </body>
  74. {{ with resources.Get "js/animation.js" }}
  75. <script defer language="javascript" type="text/javascript" src="{{ .RelPermalink }}"></script>
  76. {{ end }}
  77. <script>
  78. var _paq = window._paq = window._paq || [];
  79. /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
  80. _paq.push(['trackPageView']);
  81. _paq.push(['enableLinkTracking']);
  82. (function() {
  83. var u="//stats.aktivisda.earth/";
  84. _paq.push(['setTrackerUrl', u+'matomo.php']);
  85. _paq.push(['setSiteId', '17']);
  86. var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
  87. g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
  88. })();
  89. </script>
  90. </html>