Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions _pages/blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,8 @@ pagination:
{% assign post_url = post.redirect | relative_url %}
{% endif %}

<a class="news-card" href="{{ post_url }}"{% if post.redirect contains '://' %} target="\_blank" rel="noopener"{% endif %}>
{% if post.thumbnail %}

<div class="news-card-img">
<img src="{{ post.thumbnail | relative_url }}" alt="{{ post.title }}">
</div>
{% endif %}
<div class="news-card">
{% if post.thumbnail %}<div class="news-card-img"><img src="{{ post.thumbnail | relative_url }}" alt="{{ post.title }}"></div>{% endif %}
<div class="news-card-body">
{% assign post_categories = post.categories | join: "" %}
{% if post_categories != "" %}
Expand All @@ -166,8 +161,9 @@ pagination:
<div class="news-card-meta">
{{ post.date | date: "%b %d, %Y" }} &middot; {{ read_time }} min read
</div>
<a class="stretched-link" href="{{ post_url }}"{% if post.redirect contains '://' %} target="_blank" rel="noopener"{% endif %}></a>
</div>
</div>
</a>

{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -901,10 +901,10 @@ footer.sticky-bottom {
.news-card {
display: flex;
flex-direction: column;
position: relative;
border: 1px solid var(--global-divider-color);
border-radius: 8px;
background: var(--global-card-bg-color);
text-decoration: none;
overflow: hidden;
transition:
box-shadow 0.2s ease,
Expand Down
Loading