diff --git a/layouts/_default/featured.html b/layouts/_default/featured.html index ff272f61..c818f952 100644 --- a/layouts/_default/featured.html +++ b/layouts/_default/featured.html @@ -2,12 +2,16 @@ {{- $src := "" -}} {{- $alt := "" -}} {{- $stretch := .Site.Params.imageStretch -}} + {{- $blur := .Site.Params.removeBlur -}} {{- if .Params.featured -}} {{- $src = (path.Join "img" (cond (eq .Params.featuredpath "date") (.Page.Date.Format "2006/01") (.Params.featuredpath)) .Params.featured) | absURL -}} {{- $alt = .Params.featuredalt -}} {{- with .Params.featuredstretch -}} {{- $stretch = . -}} {{- end -}} + {{- with .Params.removeBlur -}} + {{- $blur = . -}} + {{- end -}} {{- else if .Params.images -}} {{- range first 1 .Params.images -}} {{- $src = .src | absURL -}} @@ -15,9 +19,12 @@ {{- with .stretch -}} {{- $stretch = . -}} {{- end -}} + {{- with .removeBlur -}} + {{- $blur = . -}} + {{- end -}} {{- end -}} {{- end -}} - + {{ $alt }} {{- end -}}