pages/layouts/partials/scrolling-image-header.html

21 lines
599 B
HTML
Raw Permalink Normal View History

{{ $millironx := resources.Get "graphics/millironx.svg" }}
<div class="blurred-container">
<div class="motto">
<h1 id="motto">
2023-07-01 18:35:01 -04:00
{{ default .Title (safeHTML (.Param "motto")) }}
</h1>
</div>
{{ $imgsrc := print "images/" (.Param "cardImage") ".jpg" }}
{{ $mainimg := resources.Get $imgsrc }}
{{ $blurimg := $mainimg.Filter (images.GaussianBlur 100) }}
<div
class="img-src"
style="background-image: url('{{ $mainimg.RelPermalink }}');"
></div>
<div
class="img-src blur"
style="background-image: url('{{ $blurimg.RelPermalink }}');"
></div>
</div>
<br />