Skip to content

Commit

Permalink
Standardize featured_image logic (#473) (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlindsay42 committed Jan 10, 2022
1 parent fc9b235 commit 3789b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/site-header.html
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down

0 comments on commit 3789b8e

Please sign in to comment.