layouts: Use Permalink instead of RelPermalink

Addresses upstream multihost bug:
https://github.com/gohugoio/hugo/issues/12560

Closes #185
This commit is contained in:
Joe Mooring 2024-06-01 08:52:57 -07:00 committed by zjedi
parent e13ca197b8
commit b5c6238a1b
3 changed files with 6 additions and 6 deletions

View file

@ -1,11 +1,11 @@
<video playsinline="" autoplay="true" muted="" loop=""
poster="https://www.ledger.com/wp-content/themes/ledger-v2/public/images/homepage/home-hero-ledger.jpg">
<!--
<!--
<source src="https://cdn.shopify.com/s/files/1/2974/4858/files/home-hero-mobile.webm?v=1637155649" type="video/webm">
<source src="https://cdn.shopify.com/s/files/1/2974/4858/files/home-hero-mobile.mp4?v=1637155649" type="video/mp4">
<source src="https://cdn.shopify.com/s/files/1/2974/4858/files/home-hero-mobile.mov?v=1637155649" type="video/mov">
-->
{{ $videoResource := resources.Get "cover/pexels-pressmaster-3209239-960x540-25fps.mp4" }}
<source src="{{ $videoResource.Permalink }}" type="video/mp4">
</video>
<source src="{{ $videoResource.RelPermalink }}" type="video/mp4">
</video>