From b679c6c2e28621ca6810bcdd14ef7a5db0236a6b Mon Sep 17 00:00:00 2001 From: JJ Date: Fri, 21 Mar 2025 13:45:32 +0000 Subject: chess page --- layouts/_default/baseof.html | 11 +++++++++-- layouts/page/chess.html | 8 ++++++++ layouts/partials/footer.html | 5 ++++- layouts/partials/nav.html | 6 +++--- 4 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 layouts/page/chess.html (limited to 'layouts') 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 @@ ` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{- partial "custom_head.html" . -}} - + - + {{ if eq .RelPermalink "/chess/" }} {{ $chessData := index .Site.Data.chess + "chessdata" }} + + + + {{ end }} 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" }} +

+ *all data comes from Lichess +

+ + + +{{ 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 @@ -

Find me here: git

+

+ Find me here: git + pypi +

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" }} blog {{ end }} -{{ with .Site.GetPage "/snippets" }} +{{ with .Site.GetPage "snippets" }} snippets {{ end }} -{{ with .Site.GetPage "/projects" }} +{{ with .Site.GetPage "projects" }} projects {{ end }} \ No newline at end of file -- cgit v1.2.3