From 2f9cbf1cb6cd50ae2d50e44b7072577ec5f18e40 Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Tue, 3 Sep 2024 17:32:24 +0300 Subject: [PATCH] feat standardize script order (#974) --- src/_includes/layouts/default.njk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/_includes/layouts/default.njk b/src/_includes/layouts/default.njk index c40e9b444..8df115bdd 100644 --- a/src/_includes/layouts/default.njk +++ b/src/_includes/layouts/default.njk @@ -51,6 +51,10 @@ {% endset %} + {% if canonicalUrl | shouldCanonicalHaveGAM %} + + {% endif %} + {# Dynamically load Adsense scripts #} {% block monetization %} {% endblock %} @@ -119,9 +123,6 @@ {{ site.codeinjection_head | safe if site.codeinjection_head }} {{ codeinjection_head | safe if codeinjection_head }} - {% if canonicalUrl | shouldCanonicalHaveGAM %} - - {% endif %} {% block datasourceInfo %} {% endblock %}