# cotes2020/jekyll-theme-chirpy architecture

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

- Interactive diagram: https://gitdiagram.com/cotes2020/jekyll-theme-chirpy
- Repository: https://github.com/cotes2020/jekyll-theme-chirpy

## Overview

Chirpy is a Jekyll theme for publishing technical-writing sites. Authors provide posts and site configuration; the theme supplies page layouts and includes, with browser-side modules adding navigation and interactive features. The README documents content management, rich text, search, comments, feeds, analytics, PWA support, and SEO. Sampled JavaScript shows page entry points invoking shared components; most Jekyll wiring and several documented capabilities were not sampled, so those relationships are not inferred.

Main entry points: [`_javascript/modules/layouts.js`](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/layouts.js) (Layout behavior), [`_includes`](https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_includes) (Theme includes), [`_javascript/modules/components.js`](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/components.js) (Shared components), [`_layouts`](https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_layouts) (Page layouts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site rendering"]
  node_layouts["Page layouts"]
  node_includes["Theme includes"]
  node_locale["Locale data"]
end

subgraph group_content["Content features"]
  node_posts["Post content"]
  node_postmeta["Post metadata"]
  node_taxonomy["Categories and tags<br/>[categories.html]"]
  node_toc["Table of contents<br/>[toc.js]"]
  node_richtext["Rich text"]
end

subgraph group_browser["Browser experience"]
  node_postentry["Post interactions<br/>[post.js]"]
  node_pageentry["Page interactions<br/>[page.js]"]
  node_homeentry["Home interactions<br/>[home.js]"]
  node_components["Shared components<br/>[components.js]"]
  node_layoutjs["Layout behavior<br/>[layouts.js]"]
  node_sidebar["Sidebar<br/>[sidebar.js]"]
  node_topbar["Topbar and search<br/>[topbar.js]"]
  node_search["Search display<br/>[search-display.js]"]
  node_themejs["Theme modes<br/>[theme.js]"]
end

subgraph group_integrations["Services and delivery"]
  node_pwa["PWA support"]
  node_feed["Atom feed<br/>[feed.xml]"]
  node_analytics["Web analytics"]
  node_comments["Comment systems"]
end

node_author(("Site author"))
node_jekyll{{"Jekyll site"}}
node_externalservices(("External services"))

node_author -->|"authors for"| node_jekyll
node_jekyll -.->|"uses theme"| node_layouts
node_layouts -.->|"renders with"| node_includes
node_posts -.->|"publishes through"| node_jekyll
node_postentry -->|"invokes"| node_components
node_postentry -->|"invokes"| node_layoutjs
node_pageentry -->|"invokes"| node_components
node_pageentry -->|"invokes"| node_layoutjs
node_homeentry -->|"imports"| node_components
node_homeentry -->|"imports"| node_layoutjs
node_components -->|"exports"| node_toc
node_layoutjs -->|"exports"| node_sidebar
node_layoutjs -->|"exports"| node_topbar
node_topbar -->|"imports"| node_search
node_includes -.->|"uses translations"| node_locale
node_includes -->|"offers analytics"| node_analytics
node_includes -->|"offers comments"| node_comments
node_jekyll -->|"provides feed"| node_feed
node_pwa -.->|"caches resources"| node_externalservices
node_analytics -.->|"sends metrics"| node_externalservices
node_comments -.->|"embeds providers"| node_externalservices
node_jekyll -->|"tracks modifications"| node_postmeta
node_jekyll -->|"organizes posts"| node_taxonomy
node_jekyll -->|"supports embeds"| node_richtext
node_jekyll -->|"generates contents"| node_toc
node_layouts -->|"supports modes"| node_themejs

click node_layouts "https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_layouts"
click node_includes "https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_includes"
click node_locale "https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_data/locales"
click node_posts "https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_posts"
click node_postmeta "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_plugins/posts-lastmod-hook.rb"
click node_taxonomy "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_layouts/categories.html"
click node_toc "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/components/toc.js"
click node_richtext "https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_includes/embed"
click node_postentry "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/post.js"
click node_pageentry "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/page.js"
click node_homeentry "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/home.js"
click node_components "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/components.js"
click node_layoutjs "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/layouts.js"
click node_sidebar "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/layouts/sidebar.js"
click node_topbar "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/layouts/topbar.js"
click node_search "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/components/search-display.js"
click node_themejs "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/theme.js"
click node_pwa "https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_javascript/pwa"
click node_feed "https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/assets/feed.xml"
click node_analytics "https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_includes/analytics"
click node_comments "https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_includes/comments"

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_layouts,node_includes,node_locale toneBlue
class node_posts,node_postmeta,node_taxonomy,node_toc,node_richtext toneAmber
class node_postentry,node_pageentry,node_homeentry,node_components,node_layoutjs,node_sidebar,node_topbar,node_search,node_themejs toneMint
class node_pwa,node_feed,node_analytics,node_comments toneRose
class node_author,node_jekyll,node_externalservices toneIndigo
```

## Components

### Site rendering

- [Page layouts](https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_layouts): `_layouts`
- [Theme includes](https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_includes): `_includes`
- [Locale data](https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_data/locales): `_data/locales`

### Content features

- [Post content](https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_posts): `_posts`
- [Post metadata](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_plugins/posts-lastmod-hook.rb): `_plugins/posts-lastmod-hook.rb`
- [Categories and tags](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_layouts/categories.html): `_layouts/categories.html`
- [Table of contents](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/components/toc.js): `_javascript/modules/components/toc.js`
- [Rich text](https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_includes/embed): `_includes/embed`

### Browser experience

- [Post interactions](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/post.js): `_javascript/post.js`
- [Page interactions](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/page.js): `_javascript/page.js`
- [Home interactions](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/home.js): `_javascript/home.js`
- [Shared components](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/components.js): `_javascript/modules/components.js`
- [Layout behavior](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/layouts.js): `_javascript/modules/layouts.js`
- [Sidebar](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/layouts/sidebar.js): `_javascript/modules/layouts/sidebar.js`
- [Topbar and search](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/layouts/topbar.js): `_javascript/modules/layouts/topbar.js`
- [Search display](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/modules/components/search-display.js): `_javascript/modules/components/search-display.js`
- [Theme modes](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/_javascript/theme.js): `_javascript/theme.js`

### Services and delivery

- [PWA support](https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_javascript/pwa): `_javascript/pwa`
- [Atom feed](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/assets/feed.xml): `assets/feed.xml`
- [Web analytics](https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_includes/analytics): `_includes/analytics`
- [Comment systems](https://github.com/cotes2020/jekyll-theme-chirpy/tree/master/_includes/comments): `_includes/comments`

### Other components

- **Site author**
- **Jekyll site**
- **External services**

## Connections

- Site author → Jekyll site: authors for (evidence: `README.md`)
- Jekyll site → Page layouts: uses theme
- Page layouts → Theme includes: renders with
- Post content → Jekyll site: publishes through
- Post interactions → Shared components: invokes (evidence: `_javascript/post.js`)
- Post interactions → Layout behavior: invokes (evidence: `_javascript/post.js`)
- Page interactions → Shared components: invokes (evidence: `_javascript/page.js`)
- Page interactions → Layout behavior: invokes (evidence: `_javascript/page.js`)
- Home interactions → Shared components: imports (evidence: `_javascript/home.js`)
- Home interactions → Layout behavior: imports (evidence: `_javascript/home.js`)
- Shared components → Table of contents: exports (evidence: `_javascript/modules/components.js`)
- Layout behavior → Sidebar: exports (evidence: `_javascript/modules/layouts.js`)
- Layout behavior → Topbar and search: exports (evidence: `_javascript/modules/layouts.js`)
- Topbar and search → Search display: imports (evidence: `_javascript/modules/layouts/topbar.js`)
- Theme includes → Locale data: uses translations
- Theme includes → Web analytics: offers analytics (evidence: `README.md`)
- Theme includes → Comment systems: offers comments (evidence: `README.md`)
- Jekyll site → Atom feed: provides feed (evidence: `README.md`)
- PWA support → External services: caches resources
- Web analytics → External services: sends metrics
- Comment systems → External services: embeds providers
- Jekyll site → Post metadata: tracks modifications (evidence: `README.md`)
- Jekyll site → Categories and tags: organizes posts (evidence: `README.md`)
- Jekyll site → Rich text: supports embeds (evidence: `README.md`)
- Jekyll site → Table of contents: generates contents (evidence: `README.md`)
- Page layouts → Theme modes: supports modes (evidence: `README.md`)
