aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 56818d7..bd45fdf 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -21,13 +21,20 @@
<link rel="%s" type="%s" href="%s" title="%s" />
` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{-
partial "custom_head.html" . -}}
- <link rel="preconnect" href="https://fonts.googleapis.com" />
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
- <script src="/index.js" defer></script>
+ {{ if eq .RelPermalink "/chess/" }} {{ $chessData := index .Site.Data.chess
+ "chessdata" }}
+ <script type="application/json" id="chessData">
+ {{ $chessData | jsonify | safeJS }}
+ </script>
+ <script src="https://cdn.jsdelivr.net/npm/chart.js" defer></script>
+ <script src="/chess-charts.js" defer></script>
+ {{ end }}
</head>
<body>