Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions _includes/pubs.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
adding/removing a member there propagates here automatically.
- Auto-derived type badge (journal / preprint / conference) based
on the venue string — no extra data entry required.
- Year-filter chips at the top let visitors narrow to a single year.
{%- endcomment -%}

{%- assign all_lab_people = "" | split: "" -%}
Expand Down Expand Up @@ -38,13 +37,6 @@

{% assign sorted_pubs = site.data.publications | group_by_exp:'item', 'item.issued.first.year' | sort: 'name' | reverse %}

<div class="year-filter" role="toolbar" aria-label="Filter publications by year">
<button type="button" class="year-chip active" data-year="all">All</button>
{% for year in sorted_pubs %}
<button type="button" class="year-chip" data-year="{{ year.name }}">{{ year.name }}</button>
{% endfor %}
</div>

<div class="pubs-list">
{% for year in sorted_pubs %}
<section class="pubs-year" data-year="{{ year.name }}">
Expand Down Expand Up @@ -83,19 +75,3 @@ <h3>{{ year.name }}</h3>
</section>
{% endfor %}
</div>

<script>
(function () {
var chips = document.querySelectorAll('.year-filter .year-chip');
var sections = document.querySelectorAll('.pubs-year');
chips.forEach(function (btn) {
btn.addEventListener('click', function () {
var target = btn.dataset.year;
chips.forEach(function (b) { b.classList.toggle('active', b === btn); });
sections.forEach(function (s) {
s.style.display = (target === 'all' || s.dataset.year === target) ? '' : 'none';
});
});
});
})();
</script>
29 changes: 0 additions & 29 deletions css/publications.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,6 @@
max-width: 900px;
}

/* Year filter chips */
.year-filter {
margin: 0 0 1.5em 0;
display: flex;
flex-wrap: wrap;
gap: 0.4em;
}

.year-filter .year-chip {
padding: 0.25em 0.7em;
border: 1px solid #ccc;
background: #fff;
border-radius: 12px;
font-size: 0.9em;
cursor: pointer;
color: #444;
line-height: 1.4;
}

.year-filter .year-chip:hover {
background: #f5f5f5;
}

.year-filter .year-chip.active {
background: #337ab7;
color: #fff;
border-color: #337ab7;
}

/* Per-paper venue-type badge (auto-derived from container-title) */
.pub-badge {
display: inline-block;
Expand Down
Loading