{{ 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 }} {{ $current_image := (trim $featured_image "/") | relURL }} {{/* Trick to avoid setting the featured image if it corresponds to the main site */}} {{ .Scratch.Set "same_image" (eq $default_image $current_image) }} {{ end }}
{{ if $featured_image }} {{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} {{ $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 }}

{{ .Title }}

{{ $.Param "read_more_copy" | default (i18n "readMore") }} {{/* TODO: add author

By {{ .Author }}

*/}}