Last active
December 28, 2022 16:36
-
-
Save leabs/3d49ddf1bda4acffd489889a361f492d to your computer and use it in GitHub Desktop.
Remove posts collection from FOR loop output in Jekyll
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
{% for collection in site.collections %} | |
{% if collection.label == "posts" %} | |
{% continue %} | |
{% endif %} | |
{% for item in site[collection.label] %} | |
<div> | |
<h5 class="card-title">{{item.name}}</h5> | |
<p>{{ item.description }}</p> | |
</div> | |
{% endfor %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment