From 0c01ced13e6754dd80e16f3cd44b926391703a4d Mon Sep 17 00:00:00 2001 From: ahmad abdolsaheb Date: Fri, 30 Aug 2024 21:56:49 +0300 Subject: [PATCH] feat standardize script order --- 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 %}