Skip to content

Commit

Permalink
add href to post URL in post thumbnail and post description in home p…
Browse files Browse the repository at this point in the history
…age layout, update corresponding css
  • Loading branch information
Deep0Thinking committed Apr 19, 2024
1 parent 4d73d01 commit 04d8c03
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 6 additions & 2 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,18 @@ <h3>
<!-- Post Thumbnail -->
{%- if post.thumbnail -%}
<div class="post-thumbnail">
<img src="{{ post.thumbnail }}" alt="Post Thumbnail">
<a href="{{ post.url }}">
<img src="{{ post.thumbnail }}" alt="Post Thumbnail">
</a>
</div>
{%- endif -%}

<!-- Description -->
{%- if post.description -%}
<div class="post-description">
{{ post.description }}
<a href="{{ post.url }}">
{{ post.description }}
</a>
</div>
{%- endif -%}

Expand Down
10 changes: 10 additions & 0 deletions _sass/minima/custom-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,4 +266,14 @@
width: 200px;
height: auto;
border-radius: 10px;
transition: 0.3s;
}

.post-thumbnail img:hover {
transform: scale(1.05);
transition: 0.3s;
}

.post-description a {
color: black;
}

0 comments on commit 04d8c03

Please sign in to comment.