Skip to content

Commit 27e4b12

Browse files
Switch to YAML for papers
1 parent aba3337 commit 27e4b12

5 files changed

Lines changed: 62 additions & 39 deletions

File tree

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source "https://rubygems.org"
22

33
gem "jekyll"
4-
gem "jekyll-scholar"
5-
gem "jekyll-theme-minimal"
4+
gem "jekyll-theme-minimal"
5+
# 删掉了 jekyll-scholar

_config.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
title: NeuroAIHub
22
description: Focusing on the intersection of Neuroscience and AI.
33
url: "https://NeuroAIHub.github.io"
4-
5-
# 1. 这里指定主题
64
theme: jekyll-theme-minimal
75

8-
# 2. 插件列表 (只放功能插件,不要放主题)
9-
plugins:
10-
- jekyll-scholar
11-
12-
# 3. Scholar 插件配置
13-
scholar:
14-
style: apa
15-
source: ./_bibliography
16-
bibliography: papers.bib
17-
sort_by: year, month
18-
order: descending
6+
# 注意:这里不再需要 plugins 列表了,因为 minimal 主题是原生的

_data/papers.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# _data/papers.yml
2+
- title: "A Self-Evolving Agent for Neuroscience Research"
3+
authors: "San Zhang, Si Li"
4+
venue: "Nature Machine Intelligence"
5+
year: 2026
6+
url: "https://arxiv.org/abs/xxxx"
7+
8+
- title: "Brain-inspired Learning Rules"
9+
authors: "Wang Wu, San Zhang"
10+
venue: "NeurIPS"
11+
year: 2025
12+
url: "https://arxiv.org/abs/yyyy"
13+
14+
- title: "Your Next Great Paper"
15+
authors: "Your Name, Lab Mates"
16+
venue: "ICLR"
17+
year: 2024
18+
url: "#"

_layouts/bib.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
---
3+
<div class="paper-entry" style="display: flex; margin-bottom: 40px; gap: 20px;">
4+
<div class="paper-preview" style="flex: 0 0 200px;">
5+
{% if entry.preview %}
6+
<img src="{{ entry.preview | relative_url }}" style="width: 100%; border-radius: 4px; border: 1px solid #eee;">
7+
{% endif %}
8+
</div>
9+
10+
<div class="paper-details">
11+
<div class="title" style="font-weight: bold; font-size: 1.1em;">
12+
<a href="{{ entry.url }}">{{ entry.title }}</a>
13+
</div>
14+
<div class="authors" style="color: #555; margin: 5px 0;">
15+
{{ entry.author_string }}
16+
</div>
17+
<div class="venue" style="font-style: italic; color: #777;">
18+
{{ entry.journal }}{{ entry.booktitle }} ({{ entry.year }})
19+
</div>
20+
21+
{% if entry.tldr %}
22+
<div class="tldr" style="background: #f5f5f5; padding: 8px; border-radius: 4px; margin-top: 8px; font-size: 0.9em;">
23+
<strong>TL;DR:</strong> {{ entry.tldr }}
24+
</div>
25+
{% endif %}
26+
</div>
27+
</div>

publications.md

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,22 @@ title: Publications
55

66
# Publications
77

8-
<div class="bibliography">
9-
{% bibliography %}
10-
<div class="paper-entry" style="display: flex; margin-bottom: 40px; gap: 20px;">
11-
<div class="paper-preview" style="flex: 0 0 200px;">
12-
{% if entry.preview %}
13-
<img src="{{ entry.preview | relative_url }}" style="width: 100%; border-radius: 4px; border: 1px solid #eee;">
14-
{% endif %}
15-
</div>
16-
17-
<div class="paper-details">
18-
<div class="title" style="font-weight: bold; font-size: 1.1em;">
19-
<a href="{{ entry.url }}">{{ entry.title }}</a>
20-
</div>
21-
<div class="authors" style="color: #555; margin: 5px 0;">
22-
{{ entry.author_string }}
8+
<div class="publications-list">
9+
{% for paper in site.data.papers %}
10+
<div class="paper-item" style="margin-bottom: 20px;">
11+
12+
<div style="font-weight: bold; font-size: 1.1em;">
13+
<a href="{{ paper.url }}">{{ paper.title }}</a>
2314
</div>
24-
<div class="venue" style="font-style: italic; color: #777;">
25-
{{ entry.journal }}{{ entry.booktitle }} ({{ entry.year }})
15+
16+
<div style="color: #444;">
17+
{{ paper.authors }}
2618
</div>
27-
28-
{% if entry.tldr %}
29-
<div class="tldr" style="background: #f5f5f5; padding: 8px; border-radius: 4px; margin-top: 8px; font-size: 0.9em;">
30-
<strong>TL;DR:</strong> {{ entry.tldr }}
19+
20+
<div style="font-style: italic; color: #666;">
21+
{{ paper.venue }} ({{ paper.year }})
3122
</div>
32-
{% endif %}
23+
3324
</div>
34-
</div>
35-
{% endbibliography %}
25+
{% endfor %}
3626
</div>

0 commit comments

Comments
 (0)