Contributor Guide
Contributor Guide
This guide explains how to add and modify content on NucMed Atlas. The site is built with Hugo using the Hextra theme.
Quick Start
File Structure
content/
├── docs/
│ ├── notes/ # Study notes by topic
│ │ ├── physics/ # Physics chapters
│ │ ├── cardiovascular/
│ │ └── ...
│ ├── cases/ # Clinical cases
│ └── mcq/ # Practice questions
├── videos/ # Video lectures
└── about/ # About pageCreating Content
All content files are Markdown (.md) files with YAML front matter.
Adding Notes
Section Index Page
Create _index.md in the topic folder:
---
title: Topic Name
weight: 1 # Order in navigation
sidebar:
open: false # Collapsed by default
---
Brief description of the section.
## Chapters
Use cards shortcode to link to chaptersChapter Page
Create individual chapter files with this structure:
---
title: Chapter Title
weight: 1
---Then add content with:
- Learning Objectives - Bulleted list of goals
- Main Content - Organized with headings
- Callouts - To highlight key points
- Tables - For comparisons
- Practice Problems - Using details shortcode
Adding MCQs
Use the MCQ shortcode with these parameters:
| Parameter | Required | Description |
|---|---|---|
id | Yes | Unique identifier |
question | Yes | The question text |
correct | Yes | Letter of correct answer (A, B, C, or D) |
explanation | No | Explanation shown after answering |
Format: Options should be listed as A., B., C., D. on separate lines.
Example structure:
MCQ shortcode with:
- id="unique-id"
- question="Your question?"
- correct="B"
- explanation="Why B is correct"
A. First option
B. Correct answer (this one)
C. Third option
D. Fourth optionAdding Cases
Structure a case file with these sections:
- Front Matter - Title only
- Clinical History - Patient details, symptoms
- Imaging Findings - Description with embedded images
- Diagnosis - Final diagnosis and discussion
- Learning Points - Key takeaways as bullet list
Useful Shortcodes
Callouts
Three types available:
type="info"- Blue, for general informationtype="tip"- Green, for helpful tipstype="warning"- Yellow/orange, for cautions
Details (Expandable)
Creates collapsible sections. Use title parameter for the header text.
Cards
Creates linked card grids. Use inside a cards container with:
link- URL or relative pathtitle- Card titlesubtitle- Card description
Tabs
Creates tabbed content. Use items parameter with comma-separated tab names.
Front Matter Options
| Field | Description |
|---|---|
title | Page title (shown in nav + header) |
weight | Order in navigation (lower = first) |
sidebar.open | Whether section is expanded in sidebar |
toc | Show table of contents (default: true) |
draft | Set to true to hide from production |
Running Locally
cd nucmedatlas
hugo serverOpen http://localhost:1313 to preview changes.
Best Practices
- Use descriptive titles - Clear, concise chapter names
- Include learning objectives - Help readers know what to expect
- Add tables - Compare/contrast information effectively
- Use callouts - Highlight key points and clinical pearls
- Keep paragraphs short - Easier to read on screens
- Add practice problems - Reinforce learning
- Link related content - Cross-reference other sections