Add image_raw, image_stretch, image_url params to home.html

This commit is contained in:
Will Faught
2023-01-08 00:30:49 -08:00
parent 9b176c4868
commit 50565f9683
8 changed files with 45 additions and 41 deletions

View File

@@ -4,15 +4,15 @@
{{ $onload := .onload | safeJS }}
{{ $page := .page }}
{{ $referrerpolicy := .referrerpolicy | default "no-referrer" }}
{{ $remote := .remote }}
{{ $raw := .raw }}
{{ $src := .src }}
{{ if $remote }}
{{ if $raw }}
{{ $src = relLangURL $src }}
{{ else }}
{{ $resource := (partial "paige/func-resource.html" (dict
"page" $page
"url" $src
"url" (relLangURL $src)
)) | minify | fingerprint }}
{{ $integrity = $resource.Data.Integrity }}
{{ $src = $resource.RelPermalink }}