From 68828c65d37776a79d8d2a068744efa6ae947601 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Fri, 15 Nov 2024 15:13:44 +0800 Subject: [PATCH 1/7] Fix robots.txt Signed-off-by: Egor Savkin --- config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.toml b/config.toml index db8ed48..b40c52f 100644 --- a/config.toml +++ b/config.toml @@ -1,4 +1,4 @@ -base_url = "/" +base_url = "https://m-labs.hk" title = "M-Labs" description = "Open tools for open physics." -- 2.47.2 From 037cadbe6d672a0fe08fc0d05f9780f7ae470094 Mon Sep 17 00:00:00 2001 From: Egor Savkin Date: Mon, 23 Dec 2024 12:25:26 +0800 Subject: [PATCH 2/7] Replace deferred styles with standard linking This alone improves CLS from 0.9 down to 0.005, and overall score in lighthouse to green values Signed-off-by: Egor Savkin --- templates/_base.html | 26 ++++++-------------------- templates/index.html | 3 +++ templates/page-place-order.html | 2 +- 3 files changed, 10 insertions(+), 21 deletions(-) diff --git a/templates/_base.html b/templates/_base.html index adcc5a9..9fb7140 100644 --- a/templates/_base.html +++ b/templates/_base.html @@ -42,6 +42,11 @@ + + + + + {% block links %}{% endblock %} {% block styles %}{% endblock %} @@ -126,25 +131,6 @@ {% endblock %} - - - {% block footer %} @@ -186,7 +172,7 @@ - + diff --git a/templates/page-place-order.html b/templates/page-place-order.html index 63c0698..90b379c 100644 --- a/templates/page-place-order.html +++ b/templates/page-place-order.html @@ -2,7 +2,8 @@ {% block styles %} -{{ super() }} + + {% endblock %} diff --git a/templates/page.html b/templates/page.html index d730eef..db52638 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,6 +1,7 @@ {% extends 'section.html' %} {% block styles %} +{{ super() }}