multipage was not updating, should be fine now

Add analytics to it as well.
This commit is contained in:
Ciro Santilli
2021-07-27 12:59:03 +01:00
parent db3eebc966
commit cfa17330f3
3 changed files with 13 additions and 3 deletions

View File

@@ -3,7 +3,6 @@
IN = README.adoc
OPTS = \
--failure-level info \
--template-dir template_dir \
--trace \
-v
OUT = README.html
@@ -27,10 +26,15 @@ $(OUT): $(IN) $(HEAD) $(FOOT) template_dir/*
@#
@# --template-dir initially added for loading="lazy" on images and youtube iframes:
@# https://stackoverflow.com/questions/63917971/how-to-create-custom-html-output-for-an-existing-asciidoctor-asciidoc-macro
@#
@# --template-dir not in opts due to:
@# https://github.com/owenh000/asciidoctor-multipage/issues/19
@# It is not however very important in multipage output.
bundle exec asciidoctor \
$(MEDIA_CMD) \
--embedded \
-o $(BODY) \
--template-dir template_dir \
$(OPTS) \
'$<'
cat $(HEAD) $(BODY) $(FOOT) > '$@'

View File

@@ -15,3 +15,11 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
ga('create', 'UA-47867706-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Google Analytics GitLab Universal + GA4 https://webapps.stackexchange.com/questions/154503/how-to-enable-universal-analytics-on-existing-google-analytics-4-property -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-47867706-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-47867706-2');
</script>

View File

@@ -452,14 +452,12 @@ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
ga('create', 'UA-47867706-1', 'auto');
ga('send', 'pageview');
</script>
<!-- Google Analytics GitLab Universal + GA4 https://webapps.stackexchange.com/questions/154503/how-to-enable-universal-analytics-on-existing-google-analytics-4-property -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-47867706-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-47867706-2');
</script>
</head>