Skip to content

Commit

Permalink
Update publications.html
Browse files Browse the repository at this point in the history
Signed-off-by: Yuanjian Zhang <[email protected]>
  • Loading branch information
yuanjianzhang0 authored Oct 11, 2024
1 parent e32040d commit 1263a95
Showing 1 changed file with 5 additions and 22 deletions.
27 changes: 5 additions & 22 deletions _pages/publications.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,15 @@
author_profile: true
---

{% if site.author.googlescholar %}
<div class="wordwrap">You can also find my articles on <a href="{{site.author.googlescholar}}">my Google Scholar profile</a>.</div>
{% if author.googlescholar %}
You can also find my articles on <u><a href="{{author.googlescholar}}">my Google Scholar profile</a>.</u>
{% endif %}

{% include base_path %}

<!-- New style rendering if publication categories are defined -->
{% if site.publication_category %}
{% for category in site.publication_category %}
{% assign title_shown = false %}
{% for post in site.publications reversed %}
{% if post.category != category[0] %}
{% continue %}
{% endif %}
{% unless title_shown %}
<h2>{{ category[1].title }}</h2><hr />
{% assign title_shown = true %}
{% endunless %}
{% include archive-single.html %}
{% endfor %}
{% endfor %}
{% else %}
{% for post in site.publications reversed %}
{% include archive-single.html %}
{% endfor %}
{% endif %}
{% for post in site.publications reversed %}
{% include archive-single.html %}
{% endfor %}



0 comments on commit 1263a95

Please sign in to comment.