Skip to content

Commit 7e42974

Browse files
committed
Consistency: README, external links, and layout
- README: document lab news and events in news.yml, fix site structure and img list - Footer and people page: use rel='noopener noreferrer' on external links - Default layout: og/twitter image to header_london.png (hero.jpg did not exist)
1 parent ef153cf commit 7e42974

4 files changed

Lines changed: 43 additions & 14 deletions

File tree

README.md

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is the official website for the Learning, Inference & Memory (LIM) Lab, at
99
This website is built using [Jekyll](https://jekyllrb.com/) with the `github-pages` gem, ensuring full compatibility with GitHub Pages. This provides:
1010

1111
- **Template System**: One layout file controls all pages
12-
- **Data-Driven Content**: People and publications managed in YAML files
12+
- **Data-Driven Content**: People, publications, and lab news managed in YAML files
1313
- **Automatic Builds**: GitHub Pages builds automatically on push
1414
- **Easy Maintenance**: Add new content without touching HTML
1515

@@ -25,7 +25,8 @@ This website is built using [Jekyll](https://jekyllrb.com/) with the `github-pag
2525
│ └── footer.html # Footer partial
2626
├── _data/
2727
│ ├── people.yml # Lab members data
28-
│ └── publications.yml # Publications data
28+
│ ├── publications.yml # Publications data
29+
│ └── news.yml # Lab news entries
2930
├── Gemfile # Ruby dependencies
3031
├── Gemfile.lock # Locked dependency versions
3132
├── .gitignore # Git ignore rules
@@ -45,8 +46,8 @@ This website is built using [Jekyll](https://jekyllrb.com/) with the `github-pag
4546
│ └── style.css # All styling
4647
└── img/ # Images and photos
4748
├── athena1b.jpg
48-
├── European_Research_Council_logo-01.webp
49-
├── sainsbury.png
49+
├── erc.png
50+
├── swc.png
5051
├── ucl.png
5152
└── [other member photos and logos]
5253
```
@@ -101,9 +102,37 @@ published:
101102
note: "Additional note" # optional
102103
```
103104

104-
### Adding News
105+
### Adding Lab News
105106

106-
Edit `labnews/index.md` and add new news items in the Recent News section.
107+
Edit `_data/news.yml` and add new entries under `recent_news`. Each item has a `date`, `title`, and `paragraphs` list. Paragraphs support **markdown** (bold, links, lists).
108+
109+
```yaml
110+
recent_news:
111+
- date: "2025"
112+
title: "Your headline"
113+
paragraphs:
114+
- "First paragraph."
115+
- "Second paragraph. Use **bold** or [links](/join/) in markdown."
116+
- |
117+
- List item one
118+
- List item two
119+
```
120+
121+
Add new items at the top of the list so the latest news appears first.
122+
123+
### Upcoming Events (Lab News page)
124+
125+
The lab news page has an **Upcoming Events** section. Edit `_data/news.yml`:
126+
127+
- **Placeholder message** (when there are no events): change `events_placeholder`.
128+
- **Add events**: replace `upcoming_events: []` with a list of items, each with `date`, `title`, and optional `description` (markdown):
129+
130+
```yaml
131+
upcoming_events:
132+
- date: "2025-03-15"
133+
title: "Lab meeting"
134+
description: "Weekly lab meeting, Room 123."
135+
```
107136

108137
## 🎨 Making Design Changes
109138

@@ -181,9 +210,9 @@ We welcome contributions to improve the website! Here's how you can help:
181210
- Include DOI links when available
182211

183212
3. **Share News**:
184-
- Edit `labnews/index.md`
185-
- Add new items to the "Recent News" section
186-
- Include relevant links and images
213+
- Edit `_data/news.yml` and add a new entry under `recent_news`
214+
- Use `date`, `title`, and `paragraphs` (list of strings; markdown supported)
215+
- Add new items at the top so the latest news appears first
187216

188217
### Development Workflow
189218

_includes/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<footer class="site-footer">
22
<div class="footer-content">
33
<div class="footer-logos">
4-
<a href="https://www.ucl.ac.uk/swc" target="_blank" rel="noreferrer">
4+
<a href="https://www.ucl.ac.uk/swc" target="_blank" rel="noopener noreferrer">
55
<img src="{{ '/assets/img/swc.png' | relative_url }}" alt="Sainsbury Wellcome Centre logo">
66
</a>
7-
<a href="https://www.ucl.ac.uk" target="_blank" rel="noreferrer">
7+
<a href="https://www.ucl.ac.uk" target="_blank" rel="noopener noreferrer">
88
<img src="{{ '/assets/img/ucl.png' | relative_url }}" alt="UCL logo">
99
</a>
1010
</div>

_layouts/default.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<meta property="og:title" content="{{ page.title | default: site.title }} – LIM Lab">
1616
<meta property="og:type" content="website">
1717
<meta property="og:description" content="{{ page.description | default: site.description }}">
18-
<meta property="og:image" content="{{ '/assets/img/hero.jpg' | absolute_url }}">
18+
<meta property="og:image" content="{{ '/assets/img/header_london.png' | absolute_url }}">
1919
<meta name="twitter:card" content="summary_large_image">
2020
<meta name="twitter:title" content="{{ page.title | default: site.title }} – LIM Lab">
2121
<meta name="twitter:description" content="{{ page.description | default: site.description }}">
22-
<meta name="twitter:image" content="{{ '/assets/img/hero.jpg' | absolute_url }}">
22+
<meta name="twitter:image" content="{{ '/assets/img/header_london.png' | absolute_url }}">
2323
<link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
2424
</head>
2525
<body>

people/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ description: "People at LIM Lab (Learning, Inference & Memory), Athena Akrami's
2323
<p>Athena Akrami leads the Learning, Inference & Memory Lab at the Sainsbury Wellcome Centre, UCL. Her research focuses on understanding the neural mechanisms underlying learning, memory, and inference in both humans and animals.</p>
2424
<div class="person-links">
2525
<a href="mailto:a.akrami@ucl.ac.uk">Email</a>
26-
<a href="https://www.ucl.ac.uk/swc/people/athena-akrami" target="_blank" rel="noreferrer">SWC Profile</a>
26+
<a href="https://www.ucl.ac.uk/swc/people/athena-akrami" target="_blank" rel="noopener noreferrer">SWC Profile</a>
2727
</div>
2828
</div>
2929
</div>

0 commit comments

Comments
 (0)