Skip to content

Commit

Permalink
feat: support to disable excerpt image (#138)
Browse files Browse the repository at this point in the history
Add a magic code `NO_EXCERPT_IMAGE` to disable excerpt image.
  • Loading branch information
jeffreytse committed Nov 27, 2023
1 parent 3fcd20a commit 27b676c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/views/pagination-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h2 class="post-title">
<span class="post-reading-time left-vsplit"><i class="fa fa-clock-o"></i> {{ reading_time }}</span>
</div>
<div class="post-excerpt">
{%- if post_image -%}
{%- if post_image and post_image != 'NO_EXCERPT_IMAGE' -%}
<a class="post-image" href="{{ post_url }}" style="flex: 0 1 {{ image_width }}">
<div style="background-image: url({{ post_image | relative_url }}); height: {{ image_height }}"></div>
</a>
Expand Down

0 comments on commit 27b676c

Please sign in to comment.