pages/_layouts/page.html
George 3d0b362d19
Support for bibliography in blog posts and projects (#1553)
Implemented #1193

---------

Signed-off-by: George Araujo <george.gcac@gmail.com>
2023-07-12 14:07:33 -03:00

25 lines
748 B
HTML

---
layout: default
---
<!-- page.html -->
<div class="post">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
<p class="post-description">{{ page.description }}</p>
</header>
<article>
{{ content }}
</article>
{%- if page.related_publications != null and page.related_publications.size > 0 -%}
{% assign publications = page.related_publications | replace: ", ", "," | split: "," | join: "|" %}
<h2>References</h2>
<div class="publications">
{% bibliography -f {{ site.scholar.bibliography }} -q @*[key^={{ publications }}]* %}
</div>
{%- endif %}
</div>