Skip to content

Commit

Permalink
[opt] post card
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoxuu committed Jan 22, 2024
1 parent 60b80fa commit 4eccaf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/_partial/main/post_list/post_card.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function div_default() {
el += '<span class="cap" id="post-meta">';
// time
el += __("meta.created") + '&nbsp;' + '<time datetime="' + date_xml(post.date) + '">' + date(post.date, config.date_format) + '</time>';
el += `<time datetime="${date_xml(post.date)}">${date(post.date, config.date_format)}</time>`
el += '</span>';
// cat
if (post.categories && post.categories.length > 0) {
Expand Down

0 comments on commit 4eccaf0

Please sign in to comment.