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
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
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 | 1277 | 9 years ago | ||
| 2 | 885 | 9 years ago | ||
| 1 | 2891 | 9 years ago | ||
| 3 | 1074 | 9 years ago | ||
| 3 | 6553 | 9 years ago |