This page demonstrates how to use the centralized contributors database. Instead of specifying all the contributor details in each file, you can now simply reference contributors by their ID.
In your markdown frontmatter, simply list the contributor IDs:
---
title: Your Page Title
contributors:
- mattaereal # Simple ID reference
- fredriksvantes
- zedt3ster
---You can also specify contributors with their roles, which will display them in organized sections:
---
title: Your Page Title
contributors:
- role: wrote
users: [mattaereal, charlie_dev]
- role: reviewed
users: [fredriksvantes, zedt3ster]
- role: fact_checked
users: [nftdreww]
---This will display contributors in three sections: "Written by", "Reviewed by", and "Fact checked by".
- Consistency: Contributor information is stored in one place
- Maintenance: Update contributor details (avatar, GitHub, Twitter, etc.) in a single location
- Simplicity: Just reference contributor IDs in your Markdown files
- Extensibility: Easily add new social links or other information to the database
- Roles: Assign specific roles to contributors for better attribution
The contributors database is stored in src/config/contributors.json. Here's an example of what a contributor entry looks like:
{
"mattaereal": {
"name": "matta",
"avatar": "https://github.com/mattaereal.png",
"github": "https://github.com/mattaereal",
"twitter": "https://twitter.com/mattaereal",
"website": "https://theredguild.org",
"features": ["lead"],
"role": "Security Researcher",
"description": "Initiative lead and maintainer",
"company": "The Red Guild | SEAL"
}
}name: Name of the contributor to displayavatar: URL to the contributor's avatar imagegithub: GitHub profile URLtwitter: Twitter profile URLwebsite: Personal website URLfeatures: Special designations (e.g., ["lead", "core", "steward", "featured"])role: Professional role or titledescription: Short biography or descriptioncompany: Organization or company affiliation
When using the role-based format, contributors will be displayed in sections based on their roles. The standard roles are:
wrote: People who authored the contentreviewed: People who reviewed the content for accuracyfact_checked: People who verified the factual correctness
This creates a clear attribution system showing who contributed to each page in what capacity.