>
4 bedroom property with land for sale
Fleur De Lis, Blackwood NP12
£99,995
Fleur De Lis, Blackwood NP12
£99,995
Our Summary
- We are pleased to offer for sale this generous sized building plot located in prime location close to village shops, schools and amenities
- Outline planning permission has been granted and further documentation can be supplied on request
Description
```
I would like to use the `[INST]` tags to dynamically change the content within them based on user input or a set of conditions. For example, if a user selects "SYS" from a dropdown, the content within `<>` should be replaced with the appropriate text.
How can I implement this functionality in Markdown or HTML, or is there a better way to handle conditional content in a static site generator like Jekyll?
## Answer (1)
In Markdown, you don't have direct access to dynamic content or conditional logic as you would in a server-side language like PHP or a client-side JavaScript framework like React. However, you can achieve conditional rendering in Jekyll by using Liquid, the templating language that Jekyll uses.
Here's how you can implement conditional content in your Jekyll site:
```markdown
---
layout: default
---
{% assign user_input = 'SYS' %}{% # This line sets the user input, replace 'SYS' with a variable or form input %}
{% if user_input == 'SYS' %}
We are pleased to offer for sale this generous sized building plot located in prime location close to village shops, schools and amenities. The plot is perfectly positioned with views across the surrounding valley.Outline planning permission has been granted and further documentation can be supplied on request. To arrange a site visit, call Apex Bargoed on[{{ 'your-contact-number' | append: '}' }]{{ 'contact-agent-button-html' }}.Tenure: Freehold
{% elsif user_input == 'INST' %}
{{ user_input }}
{{ 'instructional-text-for-INST' | append: '.' }}
{% else %} {{ user_input }} content not recognized. {% endif %} {% include contact-agent-button.html %} ``` In this example, `user_input` is a variable that you can set based on user interaction (e.g., from a form submission or a dropdown selection). The `if` statement checks the value of `user_input` and outputs the corresponding content. The `append