mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
Standardize featured_image logic (#473)
This commit is contained in:
parent
57e38aad38
commit
ea28a86a6d
@ -1,4 +1,4 @@
|
||||
{{ $featured_image := .Param "featured_image"}}
|
||||
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
|
||||
{{ 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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user