Skip to content

Commit

Permalink
fix: add default thumbnail image (resolves #51), fix news spacing (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
greatislander authored Aug 20, 2020
1 parent 4ffcc6e commit ad12148
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/_includes/partials/components/idea-grid-item.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% if post.data.thumbnailImage %}
<div class="thumbnail" style="background-image: url({{ post.data.thumbnailImage }});"></div>
{% else %}
<div class="thumbnail thumbnail--placeholder" style="background-image: url(/images/logo.svg);"></div>
<div class="thumbnail" style="background-image: url(/images/default.png);"></div>
{% endif %}
<div class="entry-content">
<h3><a href="{{ post.url }}">{{ post.data.title }}</a></h3>
Expand Down
Binary file added src/images/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/scss/pages/_news-ideas.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@
background: $blue-500;
}

.grid .entry {
margin-bottom: 5rem;
.entry + .entry {
margin-top: 5rem;
}

Expand Down

0 comments on commit ad12148

Please sign in to comment.