Hi everyone!
After realizing today that Jekyll 3 broke my category plugins (and removed the built-in category functionality), I decided to try out Middleman. So far so good. Anyhoo, I have some code in my Jekyll site that looks for a string to text to then replace with HTML. Here’s the relevant snippet:
<main class="main">
{% if content contains "<!--/ ad /-->" %}
{{ content | split:"<!--/ ad /-->" | first % }}
{% include ad.html %}
{{ content | split:"<!--/ ad /-->" | last % }}
{% else %}
{{ content }}
{% endif %}
</main>
I was wondering if it is at all possible to do the same thing in Middleman.