Skip to content

Commit

Permalink
Standardize featured_image logic (theNewDynamic#473) (theNewDynamic#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlindsay42 authored and Remicck committed Mar 7, 2022
1 parent dab5db0 commit 87e0333
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 87e0333

Please sign in to comment.