Skip to content

Create and posting a list of most recently edited notes on front page #146

Discussion options

You must be logged in to vote

Hello! Thank you for the kind words, I'm glad you find the template useful.

This should do it:

<strong>Recently updated notes</strong>

<ul>
  {% assign recent_notes = site.notes | sort: "last_modified_at_timestamp" | reverse %}
  {% for note in recent_notes | limit: 5 %}
    <li>
      {{ note.last_modified_at | date: "%Y-%m-%d" }} — <a class="internal-link" href="{{ note.url }}">{{ note.title }}</a>
    </li>
  {% endfor %}
</ul>

I added this as a default feature of the template in #147. Thank you for asking this question!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gersande
Comment options

Answer selected by maximevaillancourt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants