1
0
Fork 0

general cleanups

This commit is contained in:
Carlos Mogas da Silva 2021-05-14 01:20:24 +01:00
parent 881671fbfe
commit 20a4458c0a
2 changed files with 1 additions and 4 deletions

View file

@ -2,8 +2,6 @@
<link rel="stylesheet" type="text/css" href="{{ "assets/hugo-matomo.css" | absURL }}" /> <link rel="stylesheet" type="text/css" href="{{ "assets/hugo-matomo.css" | absURL }}" />
<!-- Matomo --> <!-- Matomo -->
<script type="text/javascript"> <script type="text/javascript">
matomoHostURL = "{{- .Site.Params.matomo.url -}}";
matomoSiteId = {{- .Site.Params.matomo.id -}};
var _paq = window._paq = window._paq || []; var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
{{ if and (isset .Site.Params.matomo "disablecookies") (eq .Site.Params.matomo.disablecookies true) }} {{ if and (isset .Site.Params.matomo "disablecookies") (eq .Site.Params.matomo.disablecookies true) }}
@ -19,7 +17,6 @@
_paq.push(['enableLinkTracking']); _paq.push(['enableLinkTracking']);
(function() { (function() {
var u="{{- .Site.Params.matomo.url -}}/"; var u="{{- .Site.Params.matomo.url -}}/";
var id=
_paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '{{- .Site.Params.matomo.id -}}']); _paq.push(['setSiteId', '{{- .Site.Params.matomo.id -}}']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];

View file

@ -16,7 +16,7 @@
.consentCookieButton { .consentCookieButton {
border-style: outset; border-style: outset;
border-width: unset; border-width: 2px;
padding: 0 10px 0 10px; padding: 0 10px 0 10px;
margin-left: 20px; margin-left: 20px;
} }