diff --git a/layouts/partials/summary-with-image.html b/layouts/_default/summary-with-image.html similarity index 61% rename from layouts/partials/summary-with-image.html rename to layouts/_default/summary-with-image.html index 05c50e1..4f656de 100644 --- a/layouts/partials/summary-with-image.html +++ b/layouts/_default/summary-with-image.html @@ -1,3 +1,6 @@ +{{ partial "func/warn" `You are currently using 'partial "summary-with-image"' in your project templates. +You should replace it with '.Render "summary-with-image"' as the use of this partial will be deprecated in future releases. +More info here: https://github.com/theNewDynamic/gohugo-theme-ananke/releases/tag/v2.8.1` }} {{ $featured_image := partial "func/GetFeaturedImage.html" . }} {{ if $featured_image }} {{ $default_image := (trim .Site.Params.featured_image "/") | relURL }} @@ -13,23 +16,23 @@ {{ $featured_image := (trim $featured_image "/") | absURL }} {{/* Don't put the featured image in the summary if it's the default one */}} {{ if not (.Scratch.Get "same_image") }} -
- +
+ image from {{ .Title }}
{{ end }} {{ end }} -
+