Skip to content
Snippets Groups Projects
Verified Commit 5dc236b2 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

move matomo insertion out of loop

parent dd4c60cc
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,11 @@ else
version="unstable";
fi
# 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
sed -i "/matomobanner/r./.ci/analytics/gdpr-banner.html" theme/templates/_index.html
# loop through all the presentations
nBlades=0
for d in $(find . -maxdepth 1 -type d)
......@@ -47,18 +52,6 @@ do
ln -s ../../theme/package.json package.json
ln -s ../../theme theme
# reset the theme
cd $rootDir
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
sed -i "/matomobanner/r./../../.ci/analytics/gdpr-banner.html" theme/templates/_index.html
# install npm
yarn global add grunt-cli generator-reveal
yarn install
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment