aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/baseof.html11
-rw-r--r--layouts/page/chess.html8
-rw-r--r--layouts/partials/footer.html5
-rw-r--r--layouts/partials/nav.html6
4 files changed, 24 insertions, 6 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>
diff --git a/layouts/page/chess.html b/layouts/page/chess.html
new file mode 100644
index 0000000..4b3fba1
--- /dev/null
+++ b/layouts/page/chess.html
@@ -0,0 +1,8 @@
+{{ define "main" }}
+<p class="txt-right">
+ *all data comes from <a href="https://lichess.org/api">Lichess</a>
+</p>
+<canvas id="rapidChart"></canvas>
+<canvas id="blitzChart"></canvas>
+<canvas id="bulletChart"></canvas>
+{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 861b2cc..613a73a 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1 +1,4 @@
-<p>Find me here: <a href="https://git.jezl.xyz">git</a></p>
+<p>
+ Find me here: <a href="https://git.jezl.xyz">git</a>
+ <a href="https://pypi.org/user/Jezl/">pypi</a>
+</p>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index be5539c..f9abda2 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,9 +1,9 @@
-{{ with .Site.GetPage "/blog" }}
+{{ with .Site.GetPage "blog" }}
<a href="{{ "blog" | relURL }}">blog</a>
{{ end }}
-{{ with .Site.GetPage "/snippets" }}
+{{ with .Site.GetPage "snippets" }}
<a href="{{ "snippets" | relURL }}">snippets</a>
{{ end }}
-{{ with .Site.GetPage "/projects" }}
+{{ with .Site.GetPage "projects" }}
<a href="{{ "projects" | relURL }}">projects</a>
{{ end }} \ No newline at end of file