2024-11-20 17:36:54 +00:00
|
|
|
{{ $imgsrc := print "images/" (.Param "cardImage") ".jpg" }}
|
|
|
|
{{ $mainimg := resources.Get $imgsrc }}
|
|
|
|
{{ $cardImageDescription := .Param "cardImageDescription" }}
|
|
|
|
{{ $croppedImage := $mainimg.Fill "6000x2000 center" }}
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.motto::before {
|
|
|
|
background-image: url('{{ $croppedImage.RelPermalink }}');
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div class="motto">
|
|
|
|
<div class="motto-inside">
|
2022-06-29 03:33:10 +00:00
|
|
|
<h1 id="motto">
|
2023-07-01 22:35:01 +00:00
|
|
|
{{ default .Title (safeHTML (.Param "motto")) }}
|
2022-06-29 03:33:10 +00:00
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-11-20 17:36:54 +00:00
|
|
|
<div
|
|
|
|
class="img-src"
|
|
|
|
style="background-image: url('{{ $mainimg.RelPermalink }}');"
|
|
|
|
></div>
|