mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-11-04 10:09:44 +00:00
backgrounds and feature images support svg
This commit is contained in:
1 parent
b490f97b8b
commit
8bbd8b8626
11 files changed
+91
-15
No files matched your search
@@ -30,10 +30,12 @@
|
||||
(and ($.Site.Params.list.layoutBackgroundHeaderSpace | default true) ($isParentList))
|
||||
) }}
|
||||
{{- with $featured -}}
|
||||
|
||||
{{ if $shouldAddHeaderSpace | default true}}
|
||||
<div id="hero" class="h-[150px] md:h-[200px]"></div>
|
||||
{{ end }}
|
||||
{{ if $disableImageOptimization }}
|
||||
|
||||
{{ if or $disableImageOptimization (strings.HasSuffix $featured ".svg")}}
|
||||
{{ with . }}
|
||||
<div class="fixed inset-x-0 top-0 h-[800px] single_hero_background nozoom"
|
||||
style="background-image:url({{ .RelPermalink }});">
|
||||
|
||||
Reference in new issue
Block a user