Add input errors for img, link, script
This commit is contained in:
@@ -20,6 +20,10 @@
|
||||
{{ $title := $params.title }}
|
||||
{{ $width := $params.width }}
|
||||
|
||||
{{ if and (not $src) (not $resource) }}
|
||||
{{ errorf "paige/img: no src or resource" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $intrinsicheight := $height }}
|
||||
{{ $intrinsicwidth := $width }}
|
||||
|
||||
|
Reference in New Issue
Block a user