From 2644d68db32d425b706fbfceb4842a3299505f24 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sun, 24 Apr 2022 09:19:05 +0200 Subject: [PATCH] [ci skip] Move the summary-with-image partials to the new location This changed in Ananke 2.8.1 --- .../{partials => _default}/summary-with-image.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) rename layouts/{partials => _default}/summary-with-image.html (61%) 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") }} -
- + {{ end }} {{ end }} -