fix: hero image not loading in portal homepage (#31699)

This commit is contained in:
Rucha Mahabal
2022-07-26 13:43:36 +05:30
committed by GitHub
parent bc7cfe6919
commit 8a6432ec3f
2 changed files with 5 additions and 2 deletions

View File

@@ -1,7 +1,6 @@
/* csslint ignore:start */ /* csslint ignore:start */
{% if homepage.hero_image %} {% if homepage.hero_image %}
.hero-image { .hero-image {
background-image: url("{{ homepage.hero_image }}");
background-size: cover; background-size: cover;
padding: 10rem 0; padding: 10rem 0;
} }

View File

@@ -5,7 +5,11 @@
{% block content %} {% block content %}
<main> <main>
{% if homepage.hero_section_based_on == 'Default' %} {% if homepage.hero_section_based_on == 'Default' %}
<section class="hero-section border-bottom {%if homepage.hero_image%}hero-image{%endif%}"> <section class="hero-section border-bottom {%if homepage.hero_image%}hero-image{%endif%}"
{% if homepage.hero_image %}
style="background-image: url('{{ homepage.hero_image }}');"
{%- endif %}
>
<div class="container py-5"> <div class="container py-5">
<h1 class="d-none d-sm-block display-4">{{ homepage.tag_line }}</h1> <h1 class="d-none d-sm-block display-4">{{ homepage.tag_line }}</h1>
<h1 class="d-block d-sm-none">{{ homepage.tag_line }}</h1> <h1 class="d-block d-sm-none">{{ homepage.tag_line }}</h1>