use 2x instead of x2 in query params

pull/693/head
stereobooster 2023-11-26 14:23:42 +01:00
parent 11fd48f5d0
commit 6eb34e7124
1 changed files with 1 additions and 1 deletions

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