Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tianalei committed Oct 5, 2024
1 parent 9d7fc8c commit b6bacfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _includes/projects_layout.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<!-- Display categorized projects -->
{% for category in page.display_categories %}
<a id="{{ category }}" href=".#{{ category }}">
<h2 class="category" style="font-size: 1.4em">{{ category }}</h2>
<h2 class="category" style="font-size: 1.4em; margin-top: 0rem">{{ category }}</h2>
</a>
{% assign categorized_projects = site.projects | where: "category", category %}
{% assign sorted_projects = categorized_projects | sort: "importance" %}
Expand Down
10 changes: 6 additions & 4 deletions _pages/researches.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ title: Researches
description: This page includes publications (including forthcoming ones) and other research-related experiences
nav: true
nav_order: 2

show_projects: true
display_categories: [Main contributor, Participant]
horizontal: false
---

Expand All @@ -24,8 +26,8 @@ horizontal: false

<!-- _pages/projects.md -->
{% if page.show_projects %}
<div style="display: flex; justify-content: space-between; align-items: center;">
<h3 style="margin-bottom: 0.5em; margin-left: 0.2em;">Projects</h3>
</div>
{% include projects_layout.liquid %}
<div style="display: flex; justify-content: space-between; align-items: center;">
<h3 style="margin-bottom: 0.5em; margin-left: 0.2em;">Projects</h3>
</div>
{% include projects_layout.liquid %}
{% endif %}

0 comments on commit b6bacfd

Please sign in to comment.