Browse Source

multipage was not updating, should be fine now

Add analytics to it as well.
pull/396/merge
Ciro Santilli 10 months ago
parent
commit
cfa17330f3
  1. 6
      Makefile
  2. 8
      README-docinfo.html
  3. 2
      head.html

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) > '$@'

8
README-docinfo.html

@ -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>

2
head.html

@ -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>

Loading…
Cancel
Save