diff --git a/layouts/partials/img-path.html b/layouts/partials/img-path.html index e6b796e4..64ef9928 100644 --- a/layouts/partials/img-path.html +++ b/layouts/partials/img-path.html @@ -3,7 +3,6 @@ Set the path depending on the value passed through - if path is title then it will use the LinkTitle from the Page variable if path is date then it will format the directory to year/date i.e. 2006/01 Note: path will be concatenated to the root directory, img @@ -11,8 +10,6 @@ --> {{ $src := $.Scratch.Get "path" }} -{{ $alt := $.Scratch.Get "featuredalt" }} -{{ $img := $.Scratch.Get "featured" }} {{ $structType := $.Scratch.Get "structType" }} {{ if eq $src "date" }} diff --git a/layouts/post/featured.html b/layouts/post/featured.html index 95376a5d..976bacab 100644 --- a/layouts/post/featured.html +++ b/layouts/post/featured.html @@ -5,11 +5,9 @@ {{ $.Scratch.Set "structType" "page" }} {{ partial "img-path" . }} {{ $path := $.Scratch.Get "path" }} - {{ $alt := $.Scratch.Get "alt" }} - {{ $img := $.Scratch.Get "img" }} - {{ $alt }} + {{ .Params.featuredalt }} {{ end }} {{ end }}