Skip to content

Commit

Permalink
publicatiions back to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahwarchhold committed Aug 4, 2024
1 parent 6e1381a commit 4266380
Showing 1 changed file with 15 additions and 29 deletions.
44 changes: 15 additions & 29 deletions _pages/publications.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,26 @@
---
layout: page
permalink: "/publications/"
title: "publications"
description: ""
permalink: /publications/
title: Publications&Talks
description:
nav: true
nav_order: 4
post-header: true
sections:
bibtypes:
- bibquery: "@article"
- bibquery: "@inproceedings"
- bibquery: "book"
years: [2024, 2023, 2022, 2021, 2020]
- bibquery: "@misc|@thesis"
---

<div class="publications">
{% for bibtype in page.bibtypes %}
{% capture category_counter %}
{% bibliography_count -f {{site.scholar.bibliography}} -q {{bibtype.bibquery}} %}
{% endcapture %}

{%- for section in page.sections %}
<a id="{{section.text}}"></a>
<p class="bibtitle">{{section.text}}</p>
{%- for y in page.years %}
<div style="counter-reset:bibitem {{ category_counter | plus:1 }}">
<div class="publications">
<h3 class="type">{{bibtype.text}}</h3>
{% bibliography -f {{site.scholar.bibliography}} -q {{bibtype.bibquery}} %}
</div>

{%- comment -%} Count bibliography in actual section and year {%- endcomment -%}
{%- capture citecount -%}
{%- bibliography_count -f {{site.scholar.bibliography}} -q {{section.bibquery}}[year={{y}}] -%}
{%- endcapture -%}

{%- comment -%} If exist bibliography in actual section and year, print {%- endcomment -%}
{%- if citecount !="0" %}

<h2 class="year">{{y}}</h2>
{% bibliography -f {{site.scholar.bibliography}} -q {{section.bibquery}}[year={{y}}] %}

{%- endif -%}

{%- endfor %}

{%- endfor %}

</div>
{% endfor %}

0 comments on commit 4266380

Please sign in to comment.