_includes/hero.html in intia-theme-0.1.2 vs _includes/hero.html in intia-theme-0.1.3

- old
+ new

@@ -1,8 +1,10 @@ -<section class="hero is-primary is-hidden-print {% if page.hero_height %} {{ page.hero_height }} {% else %} is-medium {% endif %}" {% if page.hero_background_image %} style="background: url('{{ page.hero_background_image }}') no-repeat center center; background-size: cover;" {% endif %}> +<section class="hero is-primary is-hidden-print {% if page.hero_height %} {{ page.hero_height }} {% else %} is-medium {% endif %} {% if page.hero_tags %} {{ page.hero_tags }} {% endif %}" {% if page.hero_background_image %} style="background: url('{{ page.hero_background_image }}') no-repeat center center; background-size: cover;" {% endif %}> <div class="hero-body"> <div class="container"> - <img src="https://via.placeholder.com/440x638" alt="placeholder" class="is-rounded is-hidden-mobile"> + {% if page.hero_image %} + <img src="{{page.hero_image}}" alt="placeholder" class="is-rounded is-hidden-mobile"> + {% endif %} <h1 class="title is-1">{{ page.title }}</h1> <p class="subtitle is-4">{{ page.subtitle }}</p> {% if page.hero_link %} <a href="{{ page.hero_link | relative_url }}" class="button is-rounded is-dark"> <span>{{ page.hero_link_text }}</span> \ No newline at end of file