# shiv292003/myblog architecture

> Architecture diagram of the GitHub repository shiv292003/myblog, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/shiv292003/myblog
- Repository: https://github.com/shiv292003/myblog

## Overview

Margin notes is a static personal blog: authors write Markdown posts and maintain site/section data, which Eleventy renders into pages and feeds for readers. The README also documents archive, RSS, sitemap, privacy, and optional newsletter, comments, and analytics capabilities. External deployment is through Vercel. The available source excerpts show configuration and post rules, but not all templates or integration wiring; those relationships are included only where the README documents them.

Main entry points: [`eleventy.config.js`](https://github.com/shiv292003/myblog/blob/main/eleventy.config.js) (Eleventy renderer), [`src/posts`](https://github.com/shiv292003/myblog/tree/main/src/posts) (Markdown articles), [`src/_data/sections.js`](https://github.com/shiv292003/myblog/blob/main/src/_data/sections.js) (Section definitions), [`src/posts/posts.11tydata.js`](https://github.com/shiv292003/myblog/blob/main/src/posts/posts.11tydata.js) (Post metadata rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Content and metadata"]
  node_articles["Markdown articles"]
  node_post_rules["Post metadata rules<br/>[posts.11tydata.js]"]
  node_sections["Section definitions<br/>[sections.js]"]
  node_site_data["Site settings<br/>[site.js]"]
  node_integration_settings["Integration settings<br/>[integrations.js]"]
end

subgraph group_rendering["Site rendering"]
  node_home["Homepage<br/>[index.njk]"]
  node_templates["Page layouts"]
  node_styles["Visual design<br/>[style.css]"]
  node_comments_ui["Comments controls<br/>[comments.js]"]
  node_archive["Article archive<br/>[archive.njk]"]
  node_feed["RSS feed<br/>[feed.njk]"]
  node_sitemap["Sitemap and robots<br/>[sitemap.njk]"]
  node_privacy["Privacy page<br/>[privacy.njk]"]
  node_engine["Eleventy renderer<br/>[eleventy.config.js]"]
end

subgraph group_published["Published site"]
  node_static_site["Generated static site"]
  node_vercel["Vercel hosting"]
end

subgraph group_services["Optional services"]
  node_buttondown["Buttondown signup"]
  node_giscus["giscus discussions"]
  node_goatcounter["GoatCounter analytics"]
end

node_author(("Author"))
node_reader(("Reader"))

node_author -->|"writes"| node_articles
node_author -->|"edits"| node_sections
node_articles -->|"provides content"| node_engine
node_sections -->|"defines sections"| node_engine
node_post_rules -->|"sets post URLs"| node_articles
node_site_data -->|"provides settings"| node_engine
node_integration_settings -->|"provides identifiers"| node_engine
node_home -->|"renders homepage"| node_engine
node_templates -->|"renders pages"| node_engine
node_styles -->|"styles pages"| node_static_site
node_comments_ui -.->|"loads on request"| node_giscus
node_archive -->|"renders archive"| node_engine
node_feed -->|"renders RSS"| node_engine
node_sitemap -->|"renders sitemap"| node_engine
node_privacy -->|"renders page"| node_engine
node_engine -->|"generates"| node_static_site
node_static_site -->|"published on"| node_vercel
node_reader -->|"visits site"| node_vercel
node_reader -.->|"submits signup"| node_buttondown
node_reader -.->|"posts comments"| node_giscus
node_reader -.->|"measured by"| node_goatcounter

click node_articles "https://github.com/shiv292003/myblog/tree/main/src/posts"
click node_post_rules "https://github.com/shiv292003/myblog/blob/main/src/posts/posts.11tydata.js"
click node_sections "https://github.com/shiv292003/myblog/blob/main/src/_data/sections.js"
click node_site_data "https://github.com/shiv292003/myblog/blob/main/src/_data/site.js"
click node_integration_settings "https://github.com/shiv292003/myblog/blob/main/src/_data/integrations.js"
click node_home "https://github.com/shiv292003/myblog/blob/main/src/index.njk"
click node_templates "https://github.com/shiv292003/myblog/tree/main/src/_includes/layouts"
click node_styles "https://github.com/shiv292003/myblog/blob/main/src/assets/style.css"
click node_comments_ui "https://github.com/shiv292003/myblog/blob/main/src/assets/comments.js"
click node_archive "https://github.com/shiv292003/myblog/blob/main/src/archive.njk"
click node_feed "https://github.com/shiv292003/myblog/blob/main/src/feed.njk"
click node_sitemap "https://github.com/shiv292003/myblog/blob/main/src/sitemap.njk"
click node_privacy "https://github.com/shiv292003/myblog/blob/main/src/privacy.njk"
click node_engine "https://github.com/shiv292003/myblog/blob/main/eleventy.config.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_articles,node_post_rules,node_sections,node_site_data,node_integration_settings toneBlue
class node_home,node_templates,node_styles,node_comments_ui,node_archive,node_feed,node_sitemap,node_privacy,node_engine toneAmber
class node_static_site,node_vercel toneMint
class node_buttondown,node_giscus,node_goatcounter toneRose
class node_author,node_reader toneIndigo
```

## Components

### Content and metadata

- [Markdown articles](https://github.com/shiv292003/myblog/tree/main/src/posts): `src/posts`
- [Post metadata rules](https://github.com/shiv292003/myblog/blob/main/src/posts/posts.11tydata.js): `src/posts/posts.11tydata.js`
- [Section definitions](https://github.com/shiv292003/myblog/blob/main/src/_data/sections.js): `src/_data/sections.js`
- [Site settings](https://github.com/shiv292003/myblog/blob/main/src/_data/site.js): `src/_data/site.js`
- [Integration settings](https://github.com/shiv292003/myblog/blob/main/src/_data/integrations.js): `src/_data/integrations.js`

### Site rendering

- [Homepage](https://github.com/shiv292003/myblog/blob/main/src/index.njk): `src/index.njk`
- [Page layouts](https://github.com/shiv292003/myblog/tree/main/src/_includes/layouts): `src/_includes/layouts`
- [Visual design](https://github.com/shiv292003/myblog/blob/main/src/assets/style.css): `src/assets/style.css`
- [Comments controls](https://github.com/shiv292003/myblog/blob/main/src/assets/comments.js): `src/assets/comments.js`
- [Article archive](https://github.com/shiv292003/myblog/blob/main/src/archive.njk): `src/archive.njk`
- [RSS feed](https://github.com/shiv292003/myblog/blob/main/src/feed.njk): `src/feed.njk`
- [Sitemap and robots](https://github.com/shiv292003/myblog/blob/main/src/sitemap.njk): `src/sitemap.njk`
- [Privacy page](https://github.com/shiv292003/myblog/blob/main/src/privacy.njk): `src/privacy.njk`
- [Eleventy renderer](https://github.com/shiv292003/myblog/blob/main/eleventy.config.js): `eleventy.config.js`

### Published site

- **Generated static site**
- **Vercel hosting**

### Optional services

- **Buttondown signup**
- **giscus discussions**
- **GoatCounter analytics**

### Other components

- **Author**
- **Reader**

## Connections

- Author → Markdown articles: writes (evidence: `README.md`)
- Author → Section definitions: edits (evidence: `README.md`)
- Markdown articles → Eleventy renderer: provides content (evidence: `README.md`)
- Section definitions → Eleventy renderer: defines sections (evidence: `eleventy.config.js`)
- Post metadata rules → Markdown articles: sets post URLs (evidence: `README.md`)
- Site settings → Eleventy renderer: provides settings (evidence: `README.md`)
- Integration settings → Eleventy renderer: provides identifiers (evidence: `README.md`)
- Homepage → Eleventy renderer: renders homepage (evidence: `README.md`)
- Page layouts → Eleventy renderer: renders pages (evidence: `README.md`)
- Visual design → Generated static site: styles pages (evidence: `README.md`)
- Comments controls → giscus discussions: loads on request (evidence: `README.md`)
- Article archive → Eleventy renderer: renders archive (evidence: `README.md`)
- RSS feed → Eleventy renderer: renders RSS (evidence: `README.md`)
- Sitemap and robots → Eleventy renderer: renders sitemap (evidence: `README.md`)
- Privacy page → Eleventy renderer: renders page (evidence: `README.md`)
- Eleventy renderer → Generated static site: generates (evidence: `README.md`)
- Generated static site → Vercel hosting: published on (evidence: `README.md`)
- Reader → Vercel hosting: visits site (evidence: `README.md`)
- Reader → Buttondown signup: submits signup (evidence: `README.md`)
- Reader → giscus discussions: posts comments (evidence: `README.md`)
- Reader → GoatCounter analytics: measured by (evidence: `README.md`)
