I am working on a documentation site, that I would to have a re-usable content page in markdown file. This “re-useable” markdown file also has several shortcodes.
I am able to create this reusable markdown file, and I can use it for any URL and I also can use shortcodes within that markdown file, and it will be rendered properly.
The challenge is, the shortcodes are fixed, and I am not able to conditionally use/ignore the shortcode within that markdown file. If I have 4 shortcodes within
reusable-content.md, all these 4 shortcodes will be rendered on both .com/one/content.html and .com/two/content.html, thus these 2 pages are exactly the same. I don’t wan this, --for example – I want only 3 shortcodes displayed on one page and 4 shortcodes displayed on the other page, is this possible?
How to do this, or how to create a logic for this?