Blog articles are stored as JavaScript modules underDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/paaatrrrick/personalwebsite/llms.txt
Use this file to discover all available pages before exploring further.
src/constants/articles/ and registered in a central index file at src/constants/articles.js. The index exports a metadata list and a lookup function used by the blog route.
File structure
src/constants
articles.js
articles
netflix.js
How it works
src/constants/articles.js is the single source of truth for all published articles. It:
- Imports each article module from
src/constants/articles/. - Maintains an
articlesarray of metadata objects (title, date, id) used to build the blog listing. - Maintains an
idsAndArticlesmap from articleidto article body content. - Exports a
getArticle(id)helper that returns the content for a given article id.
Type definitions
Current articles
There is currently one published article.| ID | Title | File |
|---|---|---|
netflix | From `Hello World` to Netflix in 24 months | src/constants/articles/netflix.js |
Hello World to Netflix in 24 months” and is dated December 2023. It exports { title, date, content }. It is accessible at the route /blog/netflix.
The
netflix.js source file has a bug: the date field is set to the title string (netflixTitle) instead of the date string (netflixDate). This means the date metadata for this article is incorrectly duplicated as the title.Adding a new article
Create the article module
Create a new file at
src/constants/articles/my-topic.js. Export an object with title, date, and content.