You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on this one although I focused on Resources, Projects and People. I made a categories page, a category page, and then specifically linked to these three categories in the nav bar.
I'm still learning my way around this theme and brushing up on Jekyll and I'm a little confused about one section in the file _layout/category.html.
{%- for post in site.categories[include.taxonomy] -%}
{%- unless post.hidden -%}
{% include archive-single.html %}
{%- endunless -%}
{%- endfor -%}
I WANTED this to pull in all the posts with this category but that wasn't happening. I instead wrote a section although I'd much rather understand what they were trying to do and why it didn't seem to work.
My code (that DOES include all the posts of this category):
{% for category in site.categories %}
{% if category[0] == page.category %}
{% for post in category[1] %}
{% include archive-single.html type=entries_layout %}
{% endfor %}
{% endif %}
{% endfor %}
Basically, loop through authors and display pictures and such in a list.
Can also list people who aren't authors and have some categories if we like.
The text was updated successfully, but these errors were encountered: