|
|
|
|
|
|
|
|
{{ $featured_image := .Params.featured_image }} |
|
|
|
|
|
|
|
|
{{ $featured_image := .Param "featured_image" | default "images/gohugo-default-sample-hero-image.jpg" }} |
|
|
{{ if $featured_image }} |
|
|
{{ if $featured_image }} |
|
|
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} |
|
|
{{/* Trimming the slash and adding absURL make sure the image works no matter where our site lives */}} |
|
|
{{ $featured_image := (trim $featured_image "/") | absURL }} |
|
|
{{ $featured_image := (trim $featured_image "/") | absURL }} |