diff --git a/layouts/partials/paige/figure.html b/layouts/partials/paige/figure.html
index e73dda9e..7cb784b3 100644
--- a/layouts/partials/paige/figure.html
+++ b/layouts/partials/paige/figure.html
@@ -36,7 +36,7 @@
{{ else if eq $float "end" }}
{{ $sidemargin = "ms-4" }}
{{ else }}
- {{ errorf "invalid float: %q" $float }}
+ {{ errorf "paige/figure: invalid float: %q" $float }}
{{ end }}
{{ end }}
diff --git a/layouts/partials/paige/img.html b/layouts/partials/paige/img.html
index 651bc5a7..4af25530 100644
--- a/layouts/partials/paige/img.html
+++ b/layouts/partials/paige/img.html
@@ -43,7 +43,7 @@
{{ else if eq $method "resize" }}
{{ $resource = $resource.Resize $options }}
{{ else }}
- {{ errorf "invalid method: %q" $method }}
+ {{ errorf "paige/img: invalid method: %q" $method }}
{{ end }}
{{ end }}
diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html
index 3312714f..e65bdee4 100644
--- a/layouts/partials/paige/menu.html
+++ b/layouts/partials/paige/menu.html
@@ -15,7 +15,7 @@
{{ else if eq . "pills" }}
{{ $pills = true }}
{{ else }}
- {{ errorf "invalid menu style: %q" . }}
+ {{ errorf "paige/menu: invalid menu style: %q" . }}
{{ end }}
{{ else }}
{{ $pills = true }}
diff --git a/layouts/partials/paige/resource.html b/layouts/partials/paige/resource.html
index 6f2e6cf6..30adb100 100644
--- a/layouts/partials/paige/resource.html
+++ b/layouts/partials/paige/resource.html
@@ -8,7 +8,7 @@
{{ if (urls.Parse $url).Scheme }}
{{ with resources.GetRemote $url }}
{{ with .Err }}
- {{ errorf "cannot get remote resource %q: %v" $url . }}
+ {{ errorf "paige/resource: cannot get remote resource %q: %v" $url . }}
{{ else }}
{{ $result = . }}
{{ end }}
@@ -36,7 +36,7 @@
{{ end }}
{{ if not $result }}
- {{ errorf "invalid resource: %q" $url }}
+ {{ errorf "paige/resource: invalid resource: %q" $url }}
{{ end }}
{{ return $result }}
diff --git a/layouts/partials/paige/style.html b/layouts/partials/paige/style.html
index 15dbea12..59bcb79f 100644
--- a/layouts/partials/paige/style.html
+++ b/layouts/partials/paige/style.html
@@ -113,7 +113,7 @@ body, html {
{{ else if eq . "light" }}
{{ partial "paige/light.css" . | safeCSS }}
{{ else }}
- {{ errorf "invalid color scheme: %q" . }}
+ {{ errorf "paige/style: invalid color scheme: %q" . }}
{{ end }}
{{ else }}
@media (prefers-color-scheme: dark) {
diff --git a/layouts/shortcodes/paige/gallery.html b/layouts/shortcodes/paige/gallery.html
index 8501965d..938303ad 100644
--- a/layouts/shortcodes/paige/gallery.html
+++ b/layouts/shortcodes/paige/gallery.html
@@ -76,6 +76,6 @@
{{ end }}
{{ else }}
- {{ errorf "invalid type: %q" $type }}
+ {{ errorf "paige/gallery: invalid type: %q" $type }}
{{ end }}
diff --git a/layouts/shortcodes/paige/image.html b/layouts/shortcodes/paige/image.html
index c3192996..ab5ef4c5 100644
--- a/layouts/shortcodes/paige/image.html
+++ b/layouts/shortcodes/paige/image.html
@@ -11,7 +11,7 @@
{{ $width := .Get "width" }}
{{ if not $src }}
- {{ errorf "invalid src: %q" $src }}
+ {{ errorf "paige/image: invalid src: %q" $src }}
{{ end }}
{{ $content := partial "paige/img.html" (dict