Skip to content

Commit

Permalink
Improved the pin for posts (cotes2020#99).
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 authored and sanjidnet committed Dec 26, 2023
1 parent 4a7b3a9 commit 2901cb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


{% assign pinned = site.posts | where_exp: "item", "item.pin == true" %}
{% assign default = site.posts | where_exp: "item", "item.pin == nil " %}
{% assign default = site.posts | where_exp: "item", "item.pin != true" %}
{% assign posts = "" | split: "" %}

<!-- Get pinned posts -->
Expand Down Expand Up @@ -51,7 +51,7 @@
<div class="post-preview">
<div class="d-flex justify-content-between pr-xl-2">
<h1><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h1>
{% if post.pin %}
{% if post.pin == true %}
<i class="fas fa-thumbtack fa-fw text-muted mt-1 ml-2 mt-xl-2" data-toggle="tooltip" data-placement="left"
title="Pinned"></i>
{% endif %}
Expand Down

0 comments on commit 2901cb9

Please sign in to comment.