News content (src/contents/news)
News entries are loaded from individual MDX files under:
text
src/contents/newsEach file corresponds to one news item.
text
src/contents/news
├── 042725_news6.mdx
├── 021924_news5.mdx
├── 102123_news4.mdx
├── 062423_news3.mdx
├── 041023_news2.mdx
└── 112722_news1.mdxFile names are for your own organization. The date field in frontmatter controls ordering, not the filename.
Frontmatter
Every news file must include frontmatter with a date:
md
---
date: 2025-02-27 15:00:00-0800
---
Joined [Some Lab](https://example.com/) at Northwestern University!dateis required — items without a validdateare ignored.- The value should be an ISO-like string. The calendar day is what matters. Time and timezone (e.g.
15:00:00-0800) are accepted but optional. - News items are sorted by
date(newest first). - Display formatting of the date is controlled by
homePage.newsDateFormatinenju.config.ts. - News display cutting off before a certain years from now is controlled by
homePage.newsCutoffYearsinenju.config.ts(default is 2 years ago). - Maximum number of news items shown on the home page is controlled by
homePage.maximumNewsItemsOnHomeinenju.config.ts(default is 5).
Body content
The body of each file is a short MDX block:
- Typically one short line or one sentence.
- Standard Markdown syntax is supported (links, bold, italics, etc.).
The layout is tuned for concise items; longer text will simply wrap over multiple lines in the news list.