Skip to content

Commit 9ceebcc

Browse files
committed
Use splash as fallback instead of default cover
1 parent e389139 commit 9ceebcc

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

templates/partials/hero.html

+16-17
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,22 @@
55
{%- endif -%}
66

77
{%- if page_or_section.extra.image -%}
8-
{%- set cover_path = page_or_section.extra.image.path -%}
9-
{%- set cover_photographer = page_or_section.extra.image.photographer | default(value="") -%}
10-
{%- set cover_source = page_or_section.extra.image.source | default(value="") -%}
11-
{%- set colocated = page_or_section.extra.image.colocated | default(value=true) -%}
8+
{%- set cover_path = page_or_section.extra.image.path -%}
9+
{%- set cover_photographer = page_or_section.extra.image.photographer | default(value="") -%}
10+
{%- set cover_source = page_or_section.extra.image.source | default(value="") -%}
11+
{%- set colocated = page_or_section.extra.image.colocated | default(value=true) -%}
12+
<div id="hero-wrapper">
13+
{{ image::enriched(
14+
path=cover_path,
15+
alt="Photo",
16+
source=cover_source,
17+
photographer=cover_photographer,
18+
colocated=colocated
19+
) }}
20+
</div>
1221
{%- else -%}
13-
{%- set cover_path = '../static/' ~ config.extra.cover.path -%}
14-
{%- set cover_photographer = config.extra.cover.photographer | default(value="") -%}
15-
{%- set cover_source = config.extra.cover.source | default(value="") -%}
16-
{%- set colocated = false -%}
22+
<div id="hero-wrapper">
23+
{% include "partials/splash.html" %}
24+
</div>
1725
{%- endif -%}
1826

19-
<div id="hero-wrapper">
20-
{{ image::enriched(
21-
path=cover_path,
22-
alt="Photo",
23-
source=cover_source,
24-
photographer=cover_photographer,
25-
colocated=colocated
26-
) }}
27-
</div>

0 commit comments

Comments
 (0)