Basic question for porgramming

Hi all,

I’m new in Silverbullet nad currently trying to link from my Home page to the newest daily.
Can you haelp in creatinf a fucntion which will work [[Daily/{{today}}]]

Thank you

Maybe there are better solutions, but this works

${"[[" .. "Daily/" .. date.today() .. "]]"}

image
unfortunately it’s not working

yeah, my bad that’s not space lua. That’s a lua expression. You have to put that into your document directly

So do you think it’s possibe?

You have to copy and paste (Select with mouse, press Ctrl-C, go to silverbullet, Ctrl-V) this text: ${"[[" + "Daily/" + date.today() + "]]"} ${"[[" .. "Daily/" .. date.today() .. "]]"}, into your document

this script was problematic bit I think I found solution. Correct verions:

${"[[Daily/" .. date.today() .. "]]"}
1 Like

True this would probably be the more correct solution, but in spacelua the + should also work for string concatenation