Skip to content
Snippets Groups Projects
Commit 1f13ab43 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Add the publications' page

parent da6e3858
No related branches found
No related tags found
No related merge requests found
......@@ -147,6 +147,7 @@ if __name__ == "__main__":
PAGES = [
"index.html",
"gallery.html",
"pubs.html",
"about.html",
"contact.html"
]
......
......@@ -7,5 +7,6 @@ navbar: [
# Give in [Display_Name, Template_Name format].
[About, "about.html"],
[Gallery, "gallery.html"],
[Publications, "pubs.html"],
[Contact, "contact.html"]
]
......@@ -7,27 +7,21 @@
{% block content %}
{{ helper.wide_header() }}
<div class="container">
{{ helper.navbar(navbar, link) }}
<div class="cards">
{% for card in cards|sort_cards %}
<div class="card">
<a class="card-content" href="{{ card.link }}">
{% if card.img %}
<div class="card-img">
<img src="{{ card.img }}">
</div>
{% endif %}
<div class="card-text">
<h3>{{ card.title }}</h2>
<b><h3>{{ card.journal }}</h3></b>
<p>{{ card.date }}</p>
</div>
</a>
</div>
{% endfor %}
{% for i in range(3 - (cards|length % 3)) %} {# Add extra padding #}
<div class="card-pad"></div>
{% endfor %}
</div>
{{ helper.navbar(navbar, link) }}
<div class="text">
<h2>Publications using SWIFT</h2>
</div>
{% for card in cards|sort_cards %}
<div class="card-text">
<h4>{{ loop.index }}) <a href="https://ui.adsabs.harvard.edu/abs/{{ card.bibcode }}/abstract">{{ card.title }}</h4></a>
{% if card.author_count > 1 %}
<p>{{ card.first_author_norm }} et al., {{ card.year }}</p>
{% else %}
<p>{{ card.first_author_norm }}, {{ card.year }}</p>
{% endif %}
</div>
{% endfor %}
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment