pmoreno-rodriguez / grav-theme-editorial

Editorial is a GravCMS port of the Editorial theme from HTML5Up.net.
https://editorial.pmdesign.dev
Other
15 stars 4 forks source link

Article visibility prior to publish date #20

Closed Zarius01 closed 1 year ago

Zarius01 commented 1 year ago

Hi,

It appears that if you create an article and set a publish date in the future within the blog section it doesn't display until that defined date, however using the modular for recent posts, it displays the article immediately upon creation, even though it should not yet be visible. I'm not sure if this is a bug or if this is by design, but it would be great if those articles weren't available until the scheduled publish date.

pmoreno-rodriguez commented 1 year ago

HI, @Zarius01 Could you try the new version of recent-posts.html.twig template?

Zarius01 commented 1 year ago

Hi Rodriguez,

Thank you again. I tested your changes, and it seems to now be working as expected. Articles on the recent-posts modular do not show up until the publish date is reached.

Really appreciate your effort! I'm sure I'll use this theme for a very, very long time!