Last active
October 30, 2019 18:21
-
-
Save singh1114/46164f4d478a1be063c2ee4636357f52 to your computer and use it in GitHub Desktop.
Jekyll post content for adding some code after regular instances.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<div class="entry"> | |
{% include share-bar.html %} | |
{% assign content_para = content | split: "<p>" %} | |
{% for para in content_para %} | |
{{para}} | |
{% assign para_number = forloop.index | modulo: 10 %} | |
{% if para_number == 0 %} | |
<h2>Your SPECIAL CODE</h2> | |
{% endif %} | |
{% endfor %} | |
</div> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment