I am trying to use Jekyllone page to create a simple website. This site will also be used to create message types content blocks.
But on my Jekyllsite I want to show only certain messages, not all available ones.
How can I get a certain position without using forand ifto filter messages? Is it possible?
Change 1:
To get any specific record, I use the following method:
{% for post in site.posts %}
{% if post.title = "my title" %}
<h3> {% post.title %} </h3>
blablabla
{% endif %}
{% endfor %}
So, did anyone find an easy way to display a specific entry with "my title" without using for?
source
share