Fixed blog post image paths.

This commit is contained in:
Perry Woodin 2016-11-17 09:38:07 -05:00
parent 00911872cc
commit 760528ba91
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<div class="hero hero--post" id="hero"> <div class="hero hero--post" id="hero">
<div class="hero__background"> <div class="hero__background">
{% if page.image %} {% if page.image %}
<img src="{{ base }}/assets/img/hero/{% t pages.blog.hero-image %}" alt="" class="hero__background-image"> <img src="/assets/img/blog/{{ page.image }}" alt="" class="hero__background-image">
{% endif %} {% endif %}
</div> </div>

View file

@ -21,7 +21,7 @@ layout: default
<article class="featurepost featurepost--sidebar"> <article class="featurepost featurepost--sidebar">
<div class="featurepost__preview {% if post.image %}featurepost__preview--image{% else %}featurepost__preview--no-image{% endif %}"> <div class="featurepost__preview {% if post.image %}featurepost__preview--image{% else %}featurepost__preview--no-image{% endif %}">
{% if post.image %} {% if post.image %}
<img src="{{ post.image }}" class="featurepost__image"> <img src="/assets/img/blog/{{ post.image }}" class="featurepost__image">
{% endif %} {% endif %}
</div> </div>