Add full path to error messages
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
{{ $options := .Get "options" }}
|
||||
|
||||
{{ if not $content }}
|
||||
{{ errorf "paige/code: no content" }}
|
||||
{{ errorf "layouts/shortcodes/paige/code.html: no content" }}
|
||||
{{ end }}
|
||||
|
||||
<div class="paige-code">{{ highlight $content $lang $options }}</div>
|
||||
|
@@ -9,7 +9,7 @@
|
||||
{{ $width := .Get "width" }}
|
||||
|
||||
{{ if not $content }}
|
||||
{{ errorf "paige/figure: no content" }}
|
||||
{{ errorf "layouts/shortcodes/paige/figure.html: no content" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $showcaption := $caption }}
|
||||
@@ -37,7 +37,7 @@
|
||||
{{ else if eq $float "end" }}
|
||||
{{ $sidemargin = "ms-4" }}
|
||||
{{ else }}
|
||||
{{ errorf "paige/figure: invalid float: %q" $float }}
|
||||
{{ errorf "layouts/shortcodes/paige/figure.html: invalid float: %q" $float }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
{{ $resources := slice }}
|
||||
|
||||
{{ if and (not $images) (not $inner) }}
|
||||
{{ errorf "paige/gallery: no content" }}
|
||||
{{ errorf "layouts/shortcodes/paige/gallery.html: no content" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not $inner }}
|
||||
@@ -80,6 +80,6 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ else }}
|
||||
{{ errorf "paige/gallery: invalid type: %q" $type }}
|
||||
{{ errorf "layouts/shortcodes/paige/gallery.html: invalid type: %q" $type }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
@@ -3,7 +3,7 @@
|
||||
{{ $url := .Get "url" }}
|
||||
|
||||
{{ if not $class }}
|
||||
{{ errorf "paige/icon: no class" }}
|
||||
{{ errorf "layouts/shortcodes/paige/icon.html: no class" }}
|
||||
{{ end }}
|
||||
|
||||
<span class="paige-icon">
|
||||
|
@@ -2,7 +2,7 @@
|
||||
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }}
|
||||
|
||||
{{ if not $content }}
|
||||
{{ errorf "paige/quote: no content" }}
|
||||
{{ errorf "layouts/shortcodes/paige/quote.html: no content" }}
|
||||
{{ end }}
|
||||
|
||||
<div class="paige-quote">
|
||||
|
@@ -27,7 +27,7 @@
|
||||
{{ $width := .Get "width" }}
|
||||
|
||||
{{ if not $video }}
|
||||
{{ errorf "paige/vimeo: no video" }}
|
||||
{{ errorf "layouts/shortcodes/paige/vimeo.html: no video" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $params := slice }}
|
||||
|
@@ -15,7 +15,7 @@
|
||||
{{ $width := .Get "width" }}
|
||||
|
||||
{{ if not $video }}
|
||||
{{ errorf "paige/youtube: no video" }}
|
||||
{{ errorf "layouts/shortcodes/paige/youtube.html: no video" }}
|
||||
{{ end }}
|
||||
|
||||
{{ $host := cond site.Config.Privacy.YouTube.PrivacyEnhanced "www.youtube-nocookie.com" "www.youtube.com" }}
|
||||
|
Reference in New Issue
Block a user