diff --git a/_pages/cv.md b/_pages/cv.md
index 45e858b243f9d..8e5cf97bf879f 100644
--- a/_pages/cv.md
+++ b/_pages/cv.md
@@ -51,30 +51,18 @@ Work experience
Publications
======
-{% assign sorted_publications = site.publications | sort: 'date' | reverse %}
-{% assign last_year = "" %}
+{% assign categories_order = "Peer-review Journals,Preprints,Conference Proceedings,Conference Abstracts,Datasets,Misc" | split: "," %}
-{% for post in sorted_publications %}
- {% capture current_year %}{{ post.date | date: "%Y" }}{% endcapture %}
-
- {% unless year == current_year %}
- {% assign year = current_year %}
- {% if forloop.last %}
- {% assign last_year = year %}
- {% endif %}
-
{{ year }} +
-
- {% endunless %}
-
- {% include archive-single-cv.html %}
-
- {% if forloop.last %}
+{% for category in categories_order %}
+ {% assign publications_in_category = site.publications | where: "category", category %}
+
+ {% if publications_in_category.size > 0 %}
+
{{ category | capitalize }} +
+
+ {% for post in publications_in_category %}
+ {% include archive-single-cv.html %}
+ {% endfor %}
- {% else %}
- {% capture next_post_year %}{{ sorted_publications[forloop.index].date | date: "%Y" }}{% endcapture %}
- {% if year != next_post_year %}
-
- {% endif %}
{% endif %}
{% endfor %}
diff --git a/_pages/publications.md b/_pages/publications.md
index 98f57b251e8c1..debbc1fb72f00 100644
--- a/_pages/publications.md
+++ b/_pages/publications.md
@@ -17,15 +17,16 @@ author_profile: true
{% assign publications_in_category = site.publications | where: "category", category %}
{% if publications_in_category.size > 0 %}
- {{ category | capitalize }} +
-
+
{{ category | capitalize }} +
+
{% for post in publications_in_category %}
{% include archive-single.html %}
{% endfor %}
-
+
{% endif %}
{% endfor %}
+