Skip to content

Commit

Permalink
🚀 Fix Hugo v134
Browse files Browse the repository at this point in the history
  • Loading branch information
Funasitien authored Sep 20, 2024
1 parent 6a8630f commit 596dcf1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/lotusdocs/layouts/partials/docs/footer/feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
result.classList.add("is-visible");
}
try {
{{ if .Site.GoogleAnalytics -}}
{{ if .Site.Config.Services.GoogleAnalytics.ID -}}
{{ if not .Site.Params.feedback.eventDest | or (in .Site.Params.feedback.eventDest "google") -}}
gtag('event', '{{ replaceRE `( {1,})` "_" (.Site.Params.feedback.emoticonEventName | default "feedback" | lower) }}',
{
Expand Down Expand Up @@ -253,7 +253,7 @@
}
try {
if (formType == "positive") {
{{ if .Site.GoogleAnalytics -}}
{{ if .Site.Config.Services.GoogleAnalytics.ID -}}
{{ if not .Site.Params.feedback.eventDest | or (in .Site.Params.feedback.eventDest "google") -}}
gtag('event', '{{ replaceRE `( {1,})` "_" (.Site.Params.feedback.positiveEventName | default "Positive Feedback" | lower) }}',
{
Expand All @@ -279,7 +279,7 @@
{{ end -}}
{{ end -}}
} else if (formType == "negative") {
{{ if .Site.GoogleAnalytics -}}
{{ if .Site.Config.Services.GoogleAnalytics.ID -}}
{{ if not .Site.Params.feedback.eventDest | or (in .Site.Params.feedback.eventDest "google") -}}
gtag('event', '{{ replaceRE `( {1,})` "_" (.Site.Params.feedback.negativeEventName | default "Positive Feedback" | lower) }}',
{
Expand Down Expand Up @@ -316,4 +316,4 @@
});

</script>
{{ end }}
{{ end }}

0 comments on commit 596dcf1

Please sign in to comment.