Make v2 Home button go to a different page daily

In v1, I was able to make the Home button go to a different page daily using

indexPage: "Journal/Day/{{today}}"

What’s the equivalent in v2?

You can’t do that anymore because the index page is set only by the environmental variable when you run Silverbullet. But what you can do is to setup an additional action button for your daily journal page:

    {
      icon = "pen-tool",
      description = "Open Journal",
      run = function() editor.navigate("Journal/Day/"..date.today()) end
    },

Thanks, I did a google for SB_INDEX_PAGE and I think this has once again, changed again Index Page

1 Like

oh, nice, the more you know…

Well, to be clear, I only knew to search for SB_INDEX_PAGE because of what you shared earlier. So thanks again :slight_smile:

1 Like