mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
tpl/images: Change signature of images.QR to images.QR TEXT OPTIONS
Closes #13230
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
d9594a96fc
commit
b13d0a68e6
@@ -64,8 +64,8 @@ Encodes the given text into a QR code using the specified options and renders th
|
||||
|
||||
{{- /* Render image. */}}
|
||||
{{- if not $errors }}
|
||||
{{- $opts := dict "text" $text "level" $level "scale" $scale "targetDir" $targetDir }}
|
||||
{{- with images.QR $opts -}}
|
||||
{{- $opts := dict "level" $level "scale" $scale "targetDir" $targetDir }}
|
||||
{{- with images.QR $text $opts -}}
|
||||
<img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}"
|
||||
{{- with $alt }} alt="{{ $alt }}" {{- end }}
|
||||
{{- with $class }} class="{{ $class }}" {{- end }}
|
||||
|
Reference in New Issue
Block a user