Skip to content

Commit

Permalink
Resuelve #8: añade soporte para publicaciones programadas
Browse files Browse the repository at this point in the history
  • Loading branch information
JaimeObregon committed Jul 4, 2022
1 parent 897cc83 commit 48fd0a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions httpdocs/assets/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const blog = {

const featured = this.posts
.filter((post) => post.tags.includes('Destacado'))
.filter((post) => new Date(post.date_published) < new Date())
.map(
(post, order) => `
<li style="--delay: ${order + 1}">
Expand All @@ -94,6 +95,7 @@ export const blog = {

const other = this.posts
.filter((post) => !post.tags.includes('Destacado'))
.filter((post) => new Date(post.date_published) < new Date())
.map(
(post) => `
<li>
Expand Down

0 comments on commit 48fd0a6

Please sign in to comment.