Hi,
Is there a way to add content only if a condition is verified?
For example something like that
If <condition> then
Show this content
else
Shows this other
endif
Thanks,
Andrea
Hi,
Is there a way to add content only if a condition is verified?
For example something like that
If <condition> then
Show this content
else
Shows this other
endif
Thanks,
Andrea
No, Markdown is pure text with simple formatting. You can do this in Twig through {% if var %} etc, and you can incorporate this Twig within Markdown-content by enabling it in the page's FrontMatter.
Thanks for the answer OleVik!
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1560 | 9 years ago | ||
| 2 | 1064 | 9 years ago | ||
| 1 | 3095 | 9 years ago | ||
| 3 | 1243 | 9 years ago | ||
| 3 | 6729 | 9 years ago |