Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Plans and maps website page hierarchy, URL structure, navigation, and internal linking for SEO and usability.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/mermaid-templates.md
1# Mermaid Diagram Templates23Copy-paste-ready Mermaid diagrams for visual sitemaps. Customize node labels and connections for your site.45---67## Basic Hierarchy89Simple top-down page hierarchy.1011```mermaid12graph TD13HOME["Homepage<br/>/"] --> FEAT["Features<br/>/features"]14HOME --> PRICE["Pricing<br/>/pricing"]15HOME --> BLOG["Blog<br/>/blog"]16HOME --> ABOUT["About<br/>/about"]1718FEAT --> F1["Analytics<br/>/features/analytics"]19FEAT --> F2["Automation<br/>/features/automation"]20FEAT --> F3["Integrations<br/>/features/integrations"]2122BLOG --> B1["Post: SEO Guide<br/>/blog/seo-guide"]23BLOG --> B2["Post: CRO Tips<br/>/blog/cro-tips"]24```2526---2728## Hierarchy with Navigation Zones2930Uses subgraphs to show which pages appear in which navigation area.3132```mermaid33graph TD34subgraph "Header Nav"35HOME["Homepage"]36FEAT["Features"]37PRICE["Pricing"]38BLOG["Blog"]39CTA["Get Started ★"]40end4142subgraph "Feature Pages"43F1["Analytics"]44F2["Automation"]45F3["Integrations"]46end4748subgraph "Footer Nav"49ABOUT["About"]50CAREERS["Careers"]51CONTACT["Contact"]52PRIVACY["Privacy"]53TERMS["Terms"]54end5556HOME --> FEAT57HOME --> PRICE58HOME --> BLOG59FEAT --> F160FEAT --> F261FEAT --> F362HOME --> ABOUT63ABOUT --> CAREERS64HOME --> CONTACT65```6667---6869## Hierarchy with URL Labels7071Each node shows the page name and URL path.7273```mermaid74graph TD75HOME["Homepage<br/><small>/</small>"] --> PROD["Product<br/><small>/product</small>"]76HOME --> PRICE["Pricing<br/><small>/pricing</small>"]77HOME --> BLOG["Blog<br/><small>/blog</small>"]78HOME --> DOCS["Docs<br/><small>/docs</small>"]79HOME --> ABOUT["About<br/><small>/about</small>"]8081PROD --> P1["Analytics<br/><small>/product/analytics</small>"]82PROD --> P2["Reports<br/><small>/product/reports</small>"]8384DOCS --> D1["Getting Started<br/><small>/docs/getting-started</small>"]85DOCS --> D2["API Reference<br/><small>/docs/api</small>"]86```8788---8990## Hub-and-Spoke Content Model9192Shows a hub page connected to spoke articles, with spokes linking to each other.9394```mermaid95graph TD96HUB["SEO Guide<br/>(Hub Page)"]9798HUB --> S1["Keyword Research"]99HUB --> S2["On-Page SEO"]100HUB --> S3["Technical SEO"]101HUB --> S4["Link Building"]102103S1 -.-> S2104S2 -.-> S3105S3 -.-> S4106107style HUB fill:#f9f,stroke:#333,stroke-width:2px108```109110Legend:111- Solid lines = primary hub-spoke links112- Dashed lines = cross-links between spokes113114---115116## Internal Linking Flow117118Shows how different site sections link to each other.119120```mermaid121graph LR122subgraph "Marketing"123HOME["Homepage"]124FEAT["Features"]125PRICE["Pricing"]126end127128subgraph "Content"129BLOG["Blog"]130GUIDE["Guides"]131CASE["Case Studies"]132end133134subgraph "Product"135DOCS["Docs"]136API["API Ref"]137CHANGE["Changelog"]138end139140BLOG --> FEAT141BLOG --> CASE142CASE --> FEAT143CASE --> PRICE144FEAT --> DOCS145GUIDE --> BLOG146GUIDE --> DOCS147HOME --> FEAT148HOME --> BLOG149HOME --> CASE150```151152---153154## Before/After Restructuring155156Compare current and proposed site structures side by side.157158```mermaid159graph TD160subgraph "Before"161B_HOME["Homepage"] --> B_P1["Page 1"]162B_HOME --> B_P2["Page 2"]163B_HOME --> B_P3["Page 3"]164B_HOME --> B_P4["Page 4"]165B_HOME --> B_P5["Page 5"]166B_HOME --> B_P6["Page 6"]167B_HOME --> B_P7["Page 7"]168B_HOME --> B_P8["Page 8"]169end170171subgraph "After"172A_HOME["Homepage"] --> A_S1["Features"]173A_HOME --> A_S2["Resources"]174A_HOME --> A_S3["Company"]175A_S1 --> A_P1["Feature A"]176A_S1 --> A_P2["Feature B"]177A_S2 --> A_P3["Blog"]178A_S2 --> A_P4["Guides"]179A_S3 --> A_P5["About"]180A_S3 --> A_P6["Contact"]181end182```183184---185186## Color-Coding Conventions187188Use styles to highlight page status, priority, or type.189190```mermaid191graph TD192HOME["Homepage"] --> FEAT["Features"]193HOME --> PRICE["Pricing"]194HOME --> BLOG["Blog"]195HOME --> NEW["New Section"]196HOME --> REMOVE["Deprecated Page"]197198FEAT --> F1["Existing Feature"]199FEAT --> F2["New Feature"]200201style HOME fill:#4CAF50,color:#fff202style PRICE fill:#4CAF50,color:#fff203style FEAT fill:#4CAF50,color:#fff204style BLOG fill:#4CAF50,color:#fff205style F1 fill:#4CAF50,color:#fff206style NEW fill:#2196F3,color:#fff207style F2 fill:#2196F3,color:#fff208style REMOVE fill:#f44336,color:#fff209```210211Color key:212- **Green** (`#4CAF50`): Existing pages (no changes)213- **Blue** (`#2196F3`): New pages to create214- **Red** (`#f44336`): Pages to remove or redirect215- **Yellow** (`#FFC107`): Pages to restructure or move216- **Purple** (`#9C27B0`): High-priority / CTA pages217