20 lines
544 B
HTML
20 lines
544 B
HTML
|
|
{{ $back := "" }}
|
||
|
|
{{ if .Params.background }}
|
||
|
|
{{ with resources.Get .Params.background }}
|
||
|
|
{{ $back = .RelPermalink }}
|
||
|
|
{{ else }}
|
||
|
|
{{ errorf "Unable to find %s in assets directory" . }}
|
||
|
|
{{ end }}
|
||
|
|
{{ end }}
|
||
|
|
|
||
|
|
{{ $Content := replace .Content "<li>" "<li><i class='li__icon' data-feather='check'></i>" }}
|
||
|
|
|
||
|
|
|
||
|
|
<div
|
||
|
|
class="full-section"
|
||
|
|
style="background-image:url({{ $back }});background-size:cover;background-repeat:no-repeat;background-position:center center;">
|
||
|
|
<div class="full-section__content">
|
||
|
|
{{ $Content | safeHTML }}
|
||
|
|
</div>
|
||
|
|
</div>
|