Hi. I was trying to list articles by page update but haven’t been able to do it just yet. Currently I have the articles being listed by date published, here’s the code I have now:
<div>
<% blog('articles').articles.sort_by(&:date).reverse.each do |article| %>
<article>
</article>
<% end %>
</div>
I was hoping to use something similar to <%= File.mtime(current_page.source_file) %>
I believe?