X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Fhead-addition.html;h=42eff423c826d918bcdc5f4a8f0513fbafd29bd1;hb=1bb5bdce0e57a62c05a3b6cbb49890acc2a94152;hp=40ac3a09c9b80d03bf6eadcf82a0965837bb47e7;hpb=44056311de363ffd66939ddbcaa3354c141185e4;p=theme-danix.xyz.git diff --git a/layouts/partials/head-addition.html b/layouts/partials/head-addition.html index 40ac3a0..42eff42 100644 --- a/layouts/partials/head-addition.html +++ b/layouts/partials/head-addition.html @@ -3,12 +3,14 @@ */}} {{ if .IsPage }} {{ with $.Params.featured_image }} - {{ $source := $.Params.featured_image }} - {{ $image := resources.Get $source }} - + + {{ else }} + {{ warnf "featured image not found: %s" . }} + {{ end }} {{ end }} {{ end }}