multipage was not updating, should be fine now
Add analytics to it as well.
This commit is contained in:
6
Makefile
6
Makefile
@@ -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) > '$@'
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user