1
0
Fork 0
web2019/templates/publications.html

44 lines
1.6 KiB
HTML
Raw Permalink Normal View History

{% extends 'page.html' %}
{% block main %}
<main class="container {% block maincss %}{% endblock %}">
<div class="row">
{% block main_content %}
{% if page and page.content %}
{{ page.content | safe }}
{% endif %}
<div class="container">
<div class="row row-cols-1 row-cols-md-3 g-4">
{% set publications = load_data(path=page.extra.data, format="yaml") -%}
{% for publication in publications %}
<div class="col">
<div class="card shadow h-100" >
<div class="card-body">
<strong class="card-title">{{ publication.title }}</strong>
<p class="card-text">{{ publication.authors }}</p>
</div>
<div class="card-footer border-light-subtle">
{% for link in publication.links %}
{% if link.path %}
<a href="{{link.path}}" class="card-link">{{link.name}}</a>
{% else %}
<div class="card-link d-inline">{{link.name}}</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endblock %}
</div>
</main>
{% block outside %}{% endblock %}
{% endblock %}