Back to Hugo

Qr

docs/layouts/_partials/layouts/header/qr.html

0.163.2621 B
Original Source

{{ $t := debug.Timer "qr" }} {{ $qr := partial "_inline/qr" (dict "page" $ "img_class" "w-10 bg-white view-transition-qr" ) }} {{ $qrBig := partial "_inline/qr" (dict "page" $ "img_class" "w-64 p-4") }} {{ $t.Stop }}

{{ partial "layouts/blocks/modal.html" (dict "modal_button" $qr "modal_content" $qrBig "modal_title" (printf "QR code linking to %s" $.Permalink)) }} {{ define "_partials/_inline/qr" }} {{ $img_class := .img_class | default "w-10" }} {{ with images.QR $.page.Permalink (dict "targetDir" "images/qr") }} {{ end }} {{ end }}