You want the post-list shortcut. Something like this:
{{% post-list stop=5 %}}{{% /post-list %}}
On Fri, May 19, 2023 at 4:26 PM Daniele “Mte90” Scasciafratte <
[email protected]> wrote:
> Hi,
> I am trying to write on the home page that is a markdown file the last 4
> articles.
> The problem in my case is that it is a markdown file and a page but the
> `posts` variable is not exposed.
> There is a way to achieve what I need?
>
> --
> You received this message because you are subscribed to the Google Groups
> "nikola-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nikola-discuss/04f1f6b1-ef1b-41ef-b02f-3b890fa84c57n%40googlegroups.com
> <https://groups.google.com/d/msgid/nikola-discuss/04f1f6b1-ef1b-41ef-b02f-3b890fa84c57n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
You received this message because you are subscribed to the Google Groups
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nikola-discuss/CALXDAfrsSa3z-EyfRn%2BiwduRAkS2A3Gqop3EVdT%3DG%2B5S7smdvQ%40mail.gmail.com.