Skip to content

Commit ef153cf

Browse files
committed
Add data-driven lab news and events
- Lab news page reads from _data/news.yml (recent_news, paragraphs) - Upcoming Events section from news.yml (events_placeholder, upcoming_events) - Event titles support markdown/links; add .news-item-content, .event-item styles
1 parent 6999609 commit ef153cf

3 files changed

Lines changed: 143 additions & 40 deletions

File tree

_data/news.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Lab news entries. Add new items at the top; each can have multiple paragraphs.
2+
# Use markdown in paragraphs (e.g. **bold**, [text](url), lists with - item).
3+
4+
# Upcoming events: message shown when the list is empty; add items to show real events.
5+
events_placeholder: >-
6+
Information about upcoming conferences, talks, and events will be posted here.
7+
8+
# Add events below; use [] when none. Each event: date, title, optional description (markdown).
9+
upcoming_events:
10+
- date: "2026-07-06-10"
11+
title: "Meet us at [FENS Forum 2026](https://fensforum.org/) in Barcelona!"
12+
- date: "2026-03-12-15"
13+
title: "Meet us at [COSYNE 2026](https://www.cosyne.org/) in Lisbon!"
14+
15+
recent_news:
16+
17+
- date: "2026-02-02"
18+
title: "New female rat brain atlases from SWC Neuroinformatics unit and LIM Lab"
19+
paragraphs:
20+
- >-
21+
We're excited to announce the release of two rat brain atlases
22+
generated by the [SWC Neuroinformatics unit](https://neuroinformatics.dev/index.html)
23+
and **LIM Lab**, now available through the BrainGlobe ecosystem.
24+
They provide two-photon microscopy–based 3D templates from juvenile
25+
female animals, addressing gaps in resolution and biological
26+
diversity in existing rat atlases.
27+
- "Read the full post on the [BrainGlobe blog](https://brainglobe.info/blog/swc-female-rat-atlas.html)."
28+
29+
30+
- date: "2025"
31+
title: "New Lab Website Launch"
32+
paragraphs:
33+
- >-
34+
Welcome to our new lab website! We've redesigned our online presence
35+
to better showcase our research in learning, inference, and memory.
36+
The new site features our latest research findings, team information,
37+
and opportunities to join our lab.
38+
- >-
39+
We're excited to share our work with the broader scientific community
40+
and look forward to connecting with potential collaborators and new
41+
lab members.
42+
43+
- date: "2024"
44+
title: "ERC Consolidator Grant Awarded"
45+
paragraphs:
46+
- >-
47+
We are thrilled to announce that Dr. Athena Akrami has been awarded
48+
a Consolidator Grant by the European Research Council (ERC) to
49+
investigate statistical learning in rats, mice, and humans.
50+
- >-
51+
The award of €2 million over five years will enable us to continue
52+
to pursue our long-term research endeavours on statistical learning
53+
and its interaction with working memory. The funding will allow the
54+
recruitment of postdoctoral fellows as well as research technicians
55+
for up to five years.
56+
- >-
57+
This is a significant milestone for our lab and will greatly enhance
58+
our research capabilities in understanding the neural mechanisms
59+
underlying learning and memory.
60+
61+
- date: "2024"
62+
title: "We Are Hiring!"
63+
paragraphs:
64+
- >-
65+
LIM Lab is actively recruiting talented individuals to join our
66+
research team. We are looking for:
67+
- |
68+
- **Postdoctoral Fellows** - to lead independent research projects in statistical learning and memory
69+
- **Research Technicians** - to support our experimental work and data collection
70+
- **PhD Students** - to pursue doctoral research in our lab
71+
- >-
72+
If you're passionate about understanding the brain and have relevant
73+
experience in neuroscience, psychology, or related fields, we'd love
74+
to hear from you. Please visit our [Join](/join/) page for more
75+
information.

assets/css/style.css

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -891,44 +891,76 @@ body {
891891
font-size: 16px;
892892
font-weight: 600;
893893
color: #666;
894-
min-width: 80px;
894+
min-width: 120px;
895+
flex-shrink: 0;
896+
white-space: nowrap;
895897
}
896898

897-
.news-content h3 {
899+
.news-item-content h3 {
898900
font-size: 24px;
899901
font-weight: 600;
900902
margin-bottom: 15px;
901903
color: #000;
902904
}
903905

904-
.news-content p {
906+
.news-item-content p {
905907
margin-bottom: 15px;
906908
line-height: 1.7;
907909
}
908910

909-
.news-content ul {
911+
.news-item-content ul {
910912
margin-left: 20px;
911913
margin-bottom: 15px;
912914
}
913915

914-
.news-content li {
916+
.news-item-content li {
915917
margin-bottom: 8px;
916918
line-height: 1.6;
917919
}
918920

919-
.news-content a {
921+
.news-item-content a {
920922
color: #1E90FF;
921923
text-decoration: none;
922924
}
923925

924-
.news-content a:hover {
926+
.news-item-content a:hover {
925927
text-decoration: underline;
926928
}
927929

928930
.events-list {
929931
margin-left: 20px;
930932
}
931933

934+
.event-item {
935+
padding: 15px 20px;
936+
margin-bottom: 12px;
937+
background: #f8f8f8;
938+
border-radius: 4px;
939+
border-left: 4px solid #1E90FF;
940+
}
941+
942+
.event-item .event-date {
943+
display: block;
944+
font-size: 14px;
945+
font-weight: 600;
946+
color: #666;
947+
margin-bottom: 4px;
948+
white-space: nowrap;
949+
}
950+
951+
.event-item .event-title {
952+
font-weight: 600;
953+
}
954+
955+
.event-item .event-title p {
956+
margin: 0;
957+
}
958+
959+
.event-item p {
960+
margin: 8px 0 0;
961+
line-height: 1.6;
962+
}
963+
932964
.event-placeholder {
933965
color: #666;
934966
font-style: italic;
@@ -1251,6 +1283,11 @@ body {
12511283

12521284
.news-date {
12531285
min-width: auto;
1286+
white-space: normal;
1287+
}
1288+
1289+
.event-item .event-date {
1290+
white-space: normal;
12541291
}
12551292

12561293
.erc-info {

labnews/index.md

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -12,48 +12,39 @@ description: "Latest news from LIM Lab (Learning, Inference & Memory), Athena Ak
1212
<div class="news-content">
1313
<section class="news-section">
1414
<h2>Recent News</h2>
15-
16-
<article class="news-item">
17-
<div class="news-date">2024</div>
18-
<div class="news-content">
19-
<h3>ERC Consolidator Grant Awarded</h3>
20-
<p>We are thrilled to announce that Dr. Athena Akrami has been awarded a Consolidator Grant by the European Research Council (ERC) to investigate statistical learning in rats, mice, and humans.</p>
21-
<p>The award of €2 million over five years will enable us to continue to pursue our long-term research endeavours on statistical learning and its interaction with working memory. The funding will allow the recruitment of postdoctoral fellows as well as research technicians for up to five years.</p>
22-
<p>This is a significant milestone for our lab and will greatly enhance our research capabilities in understanding the neural mechanisms underlying learning and memory.</p>
23-
</div>
24-
</article>
25-
26-
<article class="news-item">
27-
<div class="news-date">2024</div>
28-
<div class="news-content">
29-
<h3>New Lab Website Launch</h3>
30-
<p>Welcome to our new lab website! We've redesigned our online presence to better showcase our research in learning, inference, and memory. The new site features our latest research findings, team information, and opportunities to join our lab.</p>
31-
<p>We're excited to share our work with the broader scientific community and look forward to connecting with potential collaborators and new lab members.</p>
32-
</div>
33-
</article>
34-
15+
16+
{% for item in site.data.news.recent_news %}
3517
<article class="news-item">
36-
<div class="news-date">2024</div>
37-
<div class="news-content">
38-
<h3>We Are Hiring!</h3>
39-
<p>LIM Lab is actively recruiting talented individuals to join our research team. We are looking for:</p>
40-
<ul>
41-
<li><strong>Postdoctoral Fellows</strong> - to lead independent research projects in statistical learning and memory</li>
42-
<li><strong>Research Technicians</strong> - to support our experimental work and data collection</li>
43-
<li><strong>PhD Students</strong> - to pursue doctoral research in our lab</li>
44-
</ul>
45-
<p>If you're passionate about understanding the brain and have relevant experience in neuroscience, psychology, or related fields, we'd love to hear from you. Please visit our <a href="{{ '/join/' | relative_url }}">Join</a> page for more information.</p>
18+
<div class="news-date">{{ item.date }}</div>
19+
<div class="news-item-content">
20+
<h3>{{ item.title }}</h3>
21+
{% for p in item.paragraphs %}
22+
{{ p | markdownify }}
23+
{% endfor %}
4624
</div>
4725
</article>
26+
{% endfor %}
4827
</section>
49-
28+
5029
<section class="news-section">
5130
<h2>Upcoming Events</h2>
5231
<div class="events-list">
53-
<p class="event-placeholder">Information about upcoming conferences, talks, and events will be posted here.</p>
32+
{% if site.data.news.upcoming_events.size > 0 %}
33+
{% for event in site.data.news.upcoming_events %}
34+
<div class="event-item">
35+
<span class="event-date">{{ event.date }}</span>
36+
<div class="event-title">{{ event.title | markdownify }}</div>
37+
{% if event.description %}
38+
{{ event.description | markdownify }}
39+
{% endif %}
40+
</div>
41+
{% endfor %}
42+
{% else %}
43+
<p class="event-placeholder">{{ site.data.news.events_placeholder }}</p>
44+
{% endif %}
5445
</div>
5546
</section>
56-
47+
5748
<section class="news-section">
5849
<h2>Lab Highlights</h2>
5950
<div class="highlights-grid">

0 commit comments

Comments
 (0)