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
the above didn't work for me. this was my workaround:
{% comment %}
Capture cites so i can check for a populated list later
{% endcomment %}
{% capture cites %}
{% bibliography --cited_in_order %}
{% endcapture %}
{% comment %}
The bibliography tag returns an empty list if there are no citations
(nil would seem to make more sense, but hey)
Thus, check for a list element in the returned bibliography to indicate
I actually cited something in this article.
{% endcomment %}
{% if cites contains "<li" %} <section class="footnotes reference">
<h1 id="">References</h1>
{{cites | markdownify }}
</section>
{% endif %}
How can I use
bibliography_count
inside conditionals? The following Jekyll code fails by "Unknown operator bibliography_count":The text was updated successfully, but these errors were encountered: