remove absurl

This commit is contained in:
gcnyin 2020-12-20 19:04:18 +08:00
parent e1549ac3b8
commit 5208cf5d88

View File

@ -1,7 +1,6 @@
{{ $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 }}
{{ $featured_image := (trim $featured_image "/") }}
<header class="cover bg-top" style="background-image: url('/{{ $featured_image }}');">
<div class="pb3-m pb6-l bg-black-60">
{{ partial "site-navigation.html" . }}