Skip to content

Commit

Permalink
fix: matomo tracking (#151)
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Zipitria <[email protected]>
  • Loading branch information
fzipi authored Nov 19, 2024
1 parent fc48d66 commit f9e8881
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
37 changes: 37 additions & 0 deletions layouts/partials/content-footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{{- $LastModifierDisplayName := "" }}
{{- $LastModifierEmail := "" }}
{{- $Date := "" }}
{{- with .GitInfo }}
{{- with .AuthorName }}
{{- $LastModifierDisplayName = . }}
{{- end }}
{{- with .AuthorEmail }}
{{- $LastModifierEmail = . }}
{{- end }}
{{- with .AuthorDate }}
{{- $Date = . | time.Format ":date_medium" }}
{{- end }}
{{- else }}
{{- with .Params.LastModifierDisplayName }}
{{- $LastModifierDisplayName = . }}
{{- end }}
{{- with .Params.LastModifierEmail }}
{{- $LastModifierEmail = . }}
{{- end }}
{{- with .Date }}
{{- $Date = . | time.Format ":date_medium" }}
{{- end }}
{{- end }}
{{- if $LastModifierDisplayName }}
<i class='fa-fw fas fa-user'></i> {{ with $LastModifierEmail }}<a href="mailto:{{ . }}">{{ end }}{{ $LastModifierDisplayName }}{{ with $LastModifierEmail }}</a>{{ end }}
{{- with $Date }}
<i class='fa-fw fas fa-calendar'></i> {{ . }}
{{- end }}
{{- end }}
{{- partial "term-list.html" (dict
"page" .
"taxonomy" "categories"
"icon" "layer-group"
) }}<!-- Matomo Image Tracker-->
<img referrerpolicy="no-referrer-when-downgrade" src="https://piwik.netnea.com/matomo/matomo.php?idsite=4&amp;rec=1" style="border:0" alt="" />
<!-- End Matomo Code -->
3 changes: 0 additions & 3 deletions layouts/partials/custom-footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,4 @@
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
<!-- Matomo Image Tracker-->
<img referrerpolicy="no-referrer-when-downgrade" src="https://piwik.netnea.com/matomo/matomo.php?idsite=4&amp;rec=1" style="border:0" alt="" />
<!-- End Matomo -->

0 comments on commit f9e8881

Please sign in to comment.