Hey, I’m having a hard time finding exactly how to do this. I want to add a URL to my main menu of the most recent post from either my “journal” with the category of “now”. Or have a separate content directory of /now and add the most recent post’s permalink to the main menu.
[[main.menu]]
identifiers = "now"
name = "Now"
url = "/now/{{ print the permalink to the most recent post in this directory }}"
weight = 2
I tried something like this a few different ways with no luck /now/{{ (index .Site.RegularPages 0).Permalink }}
I’d love an example for both the category option or separate content option.