mirror of
https://github.com/theNewDynamic/gohugo-theme-ananke.git
synced 2025-06-08 17:22:46 +00:00
remove absurl
This commit is contained in:
parent
e1549ac3b8
commit
5208cf5d88
@ -1,7 +1,6 @@
|
|||||||
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
|
{{ $featured_image := partial "func/GetFeaturedImage.html" . }}
|
||||||
{{ if $featured_image }}
|
{{ 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 "/") }}
|
||||||
{{ $featured_image := (trim $featured_image "/") | absURL }}
|
|
||||||
<header class="cover bg-top" style="background-image: url('/{{ $featured_image }}');">
|
<header class="cover bg-top" style="background-image: url('/{{ $featured_image }}');">
|
||||||
<div class="pb3-m pb6-l bg-black-60">
|
<div class="pb3-m pb6-l bg-black-60">
|
||||||
{{ partial "site-navigation.html" . }}
|
{{ partial "site-navigation.html" . }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user