From 3f2679fd2da2db4db39b019e7966a292229b99ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Jan=20Niemier?= Date: Wed, 21 May 2025 13:00:58 +0200 Subject: [PATCH] fix: add canonical URL to all pages --- flake.lock | 4 ++-- netlify.toml | 2 +- templates/index.html | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index cff88b0..d05e1da 100644 --- a/flake.lock +++ b/flake.lock @@ -21,8 +21,8 @@ "nixpkgs": { "locked": { "lastModified": 0, - "narHash": "sha256-FurMxmjEEqEMld11eX2vgfAx0Rz0JhoFm8UgxbfCZa8=", - "path": "/nix/store/jkbly0r78qgqgsi7znsxc8mbh8ydfq4n-source", + "narHash": "sha256-MmJvj6mlWzeRwKGLcwmZpKaOPZ5nJb/6al5CXqJsgjo=", + "path": "/nix/store/ad1fkqvkbxhap0gpb688bgrad221lgwj-source", "type": "path" }, "original": { diff --git a/netlify.toml b/netlify.toml index 747d201..fee6e9b 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public/" [build.environment] - ZOLA_VERSION = "0.19.2" + ZOLA_VERSION = "0.20.0" [context.deploy-preview] command = "zola build --drafts --base-url $DEPLOY_PRIME_URL" diff --git a/templates/index.html b/templates/index.html index 75bc016..0b786ef 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,6 +10,13 @@ {% endblock rss %} {% block og_preview %} + {%- if section -%} + + {%- elif page -%} + + {%- else -%} + + {%- endif -%} {{ social::og_preview() }} {%- if config.extra.twitter.site -%} -- 2.51.2