diff --git a/.ci/deploy.sh b/.ci/deploy.sh
index 0903e33c65cbf29d7fd794935a4f419a023d29a6..3f49afce0cbabedf80610d3227b9bcda3fae0e48 100644
--- a/.ci/deploy.sh
+++ b/.ci/deploy.sh
@@ -47,6 +47,12 @@ do
                 ln -s ../../theme/package.json package.json
                 ln -s ../../theme theme
 
+                # reset the theme
+                cd ../../theme
+                git checkout -- templates/_index.html
+                cd $BLADE
+                echo " > Theme reset."
+
                 # add matomo
                 sed -i "/matomohead/r./../../.ci/analytics/head.html" theme/templates/_index.html
                 sed -i "/matomopolicy/r./../../.ci/analytics/policy.html" theme/templates/_index.html