use 2x instead of x2 in query params

This commit is contained in:
stereobooster
2023-11-26 14:23:42 +01:00
parent 11fd48f5d0
commit 6eb34e7124
+1 -1
View File
@@ -12,7 +12,7 @@
{{/* https://github.com/gohugoio/hugo/pull/10666/files */}} {{/* https://github.com/gohugoio/hugo/pull/10666/files */}}
{{- $params := $url.Query -}} {{- $params := $url.Query -}}
{{- $x2Param := $params.Get "x2" -}} {{- $x2Param := $params.Get "2x" -}}
{{- $x2 := false -}} {{- $x2 := false -}}
{{- if eq $x2Param "true" -}} {{- if eq $x2Param "true" -}}
{{- $x2 = true -}} {{- $x2 = true -}}