From 9f0ff2e16dce90a7e4686b26c6caf2ca6b667acb Mon Sep 17 00:00:00 2001
From: Valentin Popov <valentin@popov.link>
Date: Fri, 12 Apr 2024 00:57:07 +0400
Subject: Fixed canonical path

---
 _includes/head.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to '_includes/head.html')

diff --git a/_includes/head.html b/_includes/head.html
index d91ac74..9f65d57 100644
--- a/_includes/head.html
+++ b/_includes/head.html
@@ -13,7 +13,7 @@
     <link href="{{- site.rss | absolute_url | url_escape -}}" rel="alternate" title="RSS" type="application/atom+xml">
 
     <!-- Canonical URL -->
-    <link href="{{- page.url | absolute_url | url_escape -}}" rel="canonical">
+    <link href="{{- page.url | absolute_url | url_escape | replace: 'index.html', '' -}}" rel="canonical">
 
     <!-- CSS -->
     {%- include styles.html -%}
-- 
cgit v1.2.3