Is it possible to add an if else statement in Markdown?
I’ve been using the comments plugin. In user/config/site.yaml I added
menu:
url: '/register'
text: Register
To add a menu item on my homepage. I created a test account and successfully logged in. But after logging in, the “register” menu item still shows up, along with the “welcome” and “logout” menu items that are added after logging in. Is there a way to make an if statement to only show the register menu item if the visitor is not logged in? Alternatively, is there another way to add the register page another than in site.yaml? Thanks.