From aec6bf847c3c0ac6a52977165359b08a499641a9 Mon Sep 17 00:00:00 2001 From: Alex Zappa Date: Sun, 18 Feb 2024 00:07:47 +0100 Subject: [PATCH 1/7] Remove Umami analytics script from site header The Umami analytics script has been removed from the head of the site. This change was made to reduce third-party dependencies and improve loading speed, since the "defer" attribute was used. Consider alternative solutions if detailed analytics data are still required for decision-making in website design and development. --- src/_includes/partials/scripts-head.njk | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/_includes/partials/scripts-head.njk b/src/_includes/partials/scripts-head.njk index c1b01f7..33aae79 100644 --- a/src/_includes/partials/scripts-head.njk +++ b/src/_includes/partials/scripts-head.njk @@ -1,8 +1,6 @@ {# color theme toggle #} - - {%- if eleventy.env.runMode === "serve" -%} {%- else -%} From 9d21c95a9af174c3e1a0cde91793eae6e41a6ee2 Mon Sep 17 00:00:00 2001 From: Alex Zappa Date: Sun, 18 Feb 2024 00:08:08 +0100 Subject: [PATCH 2/7] Add 'updated' time to post layout Added a conditional 'updated' time next to the post date. It improves the post metadata by showing when a post was last updated, in addition to its original publishing date. This feature provides more clear and accurate information to the readers about the content's relevancy and freshness. --- src/_includes/layouts/post.njk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/_includes/layouts/post.njk b/src/_includes/layouts/post.njk index c9efada..b0444f2 100644 --- a/src/_includes/layouts/post.njk +++ b/src/_includes/layouts/post.njk @@ -8,6 +8,9 @@ layout: base.njk

{{ title }}{%- if draft %} [draft]{%- endif %}

{%- if tags|filterTagList|length %}