# nwebz-dev/nwebz-dev.github.io architecture

> Architecture diagram of the GitHub repository nwebz-dev/nwebz-dev.github.io, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nwebz-dev/nwebz-dev.github.io
- Repository: https://github.com/nwebz-dev/nwebz-dev.github.io

## Overview

This is a personal Eleventy static site: visitors browse authored pages and image galleries, while Eleventy turns content and site data into static pages and JSON manifests. The documented capabilities include posts, an image gallery, site navigation, and a CV PDF. The graph includes the sampled CV-PDF implementation and documented site areas; some template and page relationships are based on the README because those source files were not excerpted.

Main entry points: [`eleventy.config.js`](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/eleventy.config.js) (Eleventy configuration), [`src/_data/images.js`](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_data/images.js) (Gallery data), [`src/posts`](https://github.com/nwebz-dev/nwebz-dev.github.io/tree/main/src/posts) (Post content), [`src/api/posts.11ty.js`](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/api/posts.11ty.js) (Post manifest API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site rendering"]
  node_config["Eleventy configuration<br/>[eleventy.config.js]"]
  node_metadata["Site metadata<br/>[site.js]"]
  node_base["Page shell<br/>[base.njk]"]
  node_styles["Site styles<br/>[style.css]"]
end

subgraph group_content["Site content"]
  node_home["Home page<br/>[index.njk]"]
  node_about["About page<br/>[about.md]"]
  node_cv["CV page<br/>[cv.md]"]
  node_posts["Post content"]
  node_postlayout["Post layout<br/>[post.njk]"]
  node_postindex["Post index<br/>[posts.njk]"]
end

subgraph group_gallery["Image gallery"]
  node_imagefiles[("Photo files")]
  node_imagedata["Gallery data<br/>[images.js]"]
  node_order["Image ordering<br/>[imageOrder.json]"]
  node_gallerypage["Gallery page<br/>[images.njk]"]
end

subgraph group_outputs["Published outputs"]
  node_cvpdf["CV PDF generator<br/>[cv-pdf.js]"]
  node_imagesapi["Image manifest API<br/>[images.11ty.js]"]
  node_postsapi["Post manifest API<br/>[posts.11ty.js]"]
end

node_visitor(("Visitor"))

node_visitor -.->|"browses"| node_home
node_config -->|"loads data"| node_metadata
node_config -->|"builds PDF"| node_cvpdf
node_config -->|"collects posts"| node_posts
node_config -->|"excludes when hidden"| node_postsapi
node_config -->|"configures watching"| node_imagedata
node_imagedata -->|"lists photos"| node_imagefiles
node_imagedata -->|"reads order"| node_order
node_gallerypage -.->|"uses gallery data"| node_imagedata
node_imagesapi -->|"serializes photos"| node_imagedata
node_postsapi -->|"serializes collection"| node_posts
node_postsapi -->|"uses site details"| node_metadata
node_postindex -.->|"lists posts"| node_posts
node_posts -.->|"uses layout"| node_postlayout
node_home -.->|"uses shell"| node_base
node_about -.->|"uses shell"| node_base
node_cv -.->|"uses shell"| node_base
node_cvpdf -->|"prints page"| node_cv

click node_config "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/eleventy.config.js"
click node_metadata "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_data/site.js"
click node_base "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_includes/base.njk"
click node_styles "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/css/style.css"
click node_home "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/index.njk"
click node_about "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/about.md"
click node_cv "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/cv.md"
click node_cvpdf "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/scripts/cv-pdf.js"
click node_posts "https://github.com/nwebz-dev/nwebz-dev.github.io/tree/main/src/posts"
click node_postlayout "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_includes/post.njk"
click node_postindex "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/posts.njk"
click node_imagefiles "https://github.com/nwebz-dev/nwebz-dev.github.io/tree/main/src/img"
click node_imagedata "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_data/images.js"
click node_order "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_data/imageOrder.json"
click node_gallerypage "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/images.njk"
click node_imagesapi "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/api/images.11ty.js"
click node_postsapi "https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/api/posts.11ty.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_config,node_metadata,node_base,node_styles toneBlue
class node_home,node_about,node_cv,node_posts,node_postlayout,node_postindex toneAmber
class node_imagefiles,node_imagedata,node_order,node_gallerypage toneMint
class node_cvpdf,node_imagesapi,node_postsapi toneRose
class node_visitor toneIndigo
```

## Components

### Site rendering

- [Eleventy configuration](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/eleventy.config.js): `eleventy.config.js`
- [Site metadata](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_data/site.js): `src/_data/site.js`
- [Page shell](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_includes/base.njk): `src/_includes/base.njk`
- [Site styles](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/css/style.css): `src/css/style.css`

### Site content

- [Home page](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/index.njk): `src/index.njk`
- [About page](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/about.md): `src/about.md`
- [CV page](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/cv.md): `src/cv.md`
- [Post content](https://github.com/nwebz-dev/nwebz-dev.github.io/tree/main/src/posts): `src/posts`
- [Post layout](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_includes/post.njk): `src/_includes/post.njk`
- [Post index](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/posts.njk): `src/posts.njk`

### Image gallery

- [Photo files](https://github.com/nwebz-dev/nwebz-dev.github.io/tree/main/src/img): `src/img`
- [Gallery data](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_data/images.js): `src/_data/images.js`
- [Image ordering](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/_data/imageOrder.json): `src/_data/imageOrder.json`
- [Gallery page](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/images.njk): `src/images.njk`

### Published outputs

- [CV PDF generator](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/scripts/cv-pdf.js): `scripts/cv-pdf.js`
- [Image manifest API](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/api/images.11ty.js): `src/api/images.11ty.js`
- [Post manifest API](https://github.com/nwebz-dev/nwebz-dev.github.io/blob/main/src/api/posts.11ty.js): `src/api/posts.11ty.js`

### Other components

- **Visitor**

## Connections

- Visitor → Home page: browses (evidence: `README.md`)
- Eleventy configuration → Site metadata: loads data (evidence: `eleventy.config.js`)
- Eleventy configuration → CV PDF generator: builds PDF (evidence: `eleventy.config.js`)
- Eleventy configuration → Post content: collects posts (evidence: `eleventy.config.js`)
- Eleventy configuration → Post manifest API: excludes when hidden (evidence: `eleventy.config.js`)
- Eleventy configuration → Gallery data: configures watching (evidence: `eleventy.config.js`)
- Gallery data → Photo files: lists photos (evidence: `src/_data/images.js`)
- Gallery data → Image ordering: reads order (evidence: `src/_data/images.js`)
- Gallery page → Gallery data: uses gallery data
- Image manifest API → Gallery data: serializes photos (evidence: `src/api/images.11ty.js`)
- Post manifest API → Post content: serializes collection (evidence: `src/api/posts.11ty.js`)
- Post manifest API → Site metadata: uses site details (evidence: `src/api/posts.11ty.js`)
- Post index → Post content: lists posts (evidence: `README.md`)
- Post content → Post layout: uses layout (evidence: `README.md`)
- Home page → Page shell: uses shell (evidence: `README.md`)
- About page → Page shell: uses shell (evidence: `README.md`)
- CV page → Page shell: uses shell (evidence: `README.md`)
- CV PDF generator → CV page: prints page (evidence: `scripts/cv-pdf.js`)
