Skip to content

Commit

Permalink
Merge pull request #50 from reatlat/some-structure-refactor
Browse files Browse the repository at this point in the history
Update post metadata and link in single post card
  • Loading branch information
reatlat committed Jul 1, 2024
2 parents ba05572 + 5775b98 commit d83247b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_includes/partials/single-post-card.njk
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<article class="bg-zenith dark:bg-zenith-700/80 p-4 md:p-8 rounded-md">
<div class="post-metadata m-0 text-sm">
<time datetime="{{ post.data.date | htmlDateString }}">{{ post.data.date | readableDate("LLLL d, yyyy") }}</time>
<time datetime="{{ post.date | htmlDateString }}">{{ post.date | readableDate("LLLL d, yyyy") }}</time>
</div>
<h3 class="text-lg md:text-xl mt-4">
<a class="text-current text-pretty inline-block" href="/blog/{{ post.data.title | slugify }}/">{{ post.data.title }}</a>
<a class="text-current text-pretty inline-block" href="/blog/{{ post.fileSlug | slugify }}/">{{ post.data.title }}</a>
</h3>
<p class="text-sm line-clamp-4">{{ post.data.desc }}</p>
{%- if post.data.tags|filterTagList|length %}
Expand Down

0 comments on commit d83247b

Please sign in to comment.