{% assign publis_dir = include.plugin | prepend: '_fc-publications/' %} {% assign dir = publis_dir | append: '/' | append: include.category %} {% capture exists_dir %}{% file_exists {{ dir }} %}{% endcapture %} {% if exists_dir == "true" %} <h4> {{ include.title }} </h4> {% for pub in site.fc-publications reversed %} {% if pub.category == include.category %} {% if pub.plugin == include.plugin %} <details> <summary> {% if pub.authors %}<div>{{ pub.authors }}</div>{% endif %} <div><b>{{ pub.title }}</b>{% if pub.link %} [<a href="{{ pub.link }}">PDF</a>] {% endif %}</div> {% if pub.book %} <div>In {{ pub.book }}, {{ pub.year }}</div> {% endif %} {% if pub.short %}<div><em>{{ pub.short }}</em></div>{% endif %} </summary> <em>{{ pub }}</em> </details> {% endif %} {% endif %} {% endfor %} {% endif %}