# ac-unefm/acunefm-cms architecture

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

- Interactive diagram: https://gitdiagram.com/ac-unefm/acunefm-cms
- Repository: https://github.com/ac-unefm/acunefm-cms

## Overview

This is a small-business Hugo site template with Netlify CMS editing and Netlify Identity access control. The main workflow is an editor managing content in the CMS, previewing it with content-specific React templates, and presenting site pages through Hugo layouts. The README also documents deploy-to-Netlify setup and partial-based page composition. Source excerpts show CMS preview registration and shared jumbotron use; connections between Hugo content, layouts, and deployment are documented only at a high level, so those links cite the README.

Main entry points: [`src/js/cms.js`](https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms.js) (Netlify CMS), [`site/config.toml`](https://github.com/ac-unefm/acunefm-cms/blob/main/site/config.toml) (Hugo site renderer), [`src/js/cms-preview-templates/components/jumbotron.js`](https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/components/jumbotron.js) (Jumbotron component), [`src/js/cms-preview-templates/home.js`](https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/home.js) (Home preview)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editing["Content editing"]
  node_cms["Netlify CMS<br/>[cms.js]"]
  node_preview_home["Home preview<br/>[home.js]"]
  node_preview_post["Post preview<br/>[post.js]"]
  node_preview_products["Products preview<br/>[products.js]"]
  node_preview_values["Values preview<br/>[values.js]"]
  node_preview_contact["Contact preview<br/>[contact.js]"]
  node_jumbotron["Jumbotron component<br/>[jumbotron.js]"]
end

subgraph group_site["Hugo website"]
  node_content["Page and post content"]
  node_layouts["Page layouts"]
  node_partials["Reusable partials"]
  node_blog["Blog pages<br/>[single.html]"]
  node_sections["Section pages"]
  node_styles["Site styles<br/>[main.scss]"]
  node_hugo["Hugo site renderer<br/>[config.toml]"]
end

subgraph group_hosting["Hosting and access"]
  node_identity["Netlify Identity"]
  node_netlify["Netlify hosting"]
end

node_editor(("Site editor"))
node_visitor(("Site visitor"))

node_editor -->|"manages content"| node_cms
node_cms -->|"controls access"| node_identity
node_cms -->|"registers preview"| node_preview_home
node_cms -->|"registers preview"| node_preview_post
node_cms -->|"registers preview"| node_preview_products
node_cms -->|"registers preview"| node_preview_values
node_cms -->|"registers preview"| node_preview_contact
node_preview_home -->|"renders"| node_jumbotron
node_preview_products -->|"renders"| node_jumbotron
node_preview_values -->|"renders"| node_jumbotron
node_editor -->|"edits"| node_content
node_content -.->|"provides page data"| node_hugo
node_hugo -.->|"renders pages"| node_layouts
node_layouts -->|"composes pages"| node_partials
node_hugo -.->|"renders posts"| node_blog
node_hugo -.->|"renders sections"| node_sections
node_visitor -->|"visits site"| node_netlify
node_netlify -->|"deploys site"| node_hugo

click node_cms "https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms.js"
click node_preview_home "https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/home.js"
click node_preview_post "https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/post.js"
click node_preview_products "https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/products.js"
click node_preview_values "https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/values.js"
click node_preview_contact "https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/contact.js"
click node_jumbotron "https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/components/jumbotron.js"
click node_content "https://github.com/ac-unefm/acunefm-cms/tree/main/site/content"
click node_layouts "https://github.com/ac-unefm/acunefm-cms/tree/main/site/layouts"
click node_partials "https://github.com/ac-unefm/acunefm-cms/tree/main/site/layouts/partials"
click node_blog "https://github.com/ac-unefm/acunefm-cms/blob/main/site/layouts/post/single.html"
click node_sections "https://github.com/ac-unefm/acunefm-cms/tree/main/site/layouts/section"
click node_styles "https://github.com/ac-unefm/acunefm-cms/blob/main/src/css/main.scss"
click node_hugo "https://github.com/ac-unefm/acunefm-cms/blob/main/site/config.toml"

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_cms,node_preview_home,node_preview_post,node_preview_products,node_preview_values,node_preview_contact,node_jumbotron toneBlue
class node_content,node_layouts,node_partials,node_blog,node_sections,node_styles,node_hugo toneAmber
class node_identity,node_netlify toneMint
class node_editor,node_visitor toneIndigo
```

## Components

### Content editing

- [Netlify CMS](https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms.js): `src/js/cms.js`
- [Home preview](https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/home.js): `src/js/cms-preview-templates/home.js`
- [Post preview](https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/post.js): `src/js/cms-preview-templates/post.js`
- [Products preview](https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/products.js): `src/js/cms-preview-templates/products.js`
- [Values preview](https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/values.js): `src/js/cms-preview-templates/values.js`
- [Contact preview](https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/contact.js): `src/js/cms-preview-templates/contact.js`
- [Jumbotron component](https://github.com/ac-unefm/acunefm-cms/blob/main/src/js/cms-preview-templates/components/jumbotron.js): `src/js/cms-preview-templates/components/jumbotron.js`

### Hugo website

- [Page and post content](https://github.com/ac-unefm/acunefm-cms/tree/main/site/content): `site/content`
- [Page layouts](https://github.com/ac-unefm/acunefm-cms/tree/main/site/layouts): `site/layouts`
- [Reusable partials](https://github.com/ac-unefm/acunefm-cms/tree/main/site/layouts/partials): `site/layouts/partials`
- [Blog pages](https://github.com/ac-unefm/acunefm-cms/blob/main/site/layouts/post/single.html): `site/layouts/post/single.html`
- [Section pages](https://github.com/ac-unefm/acunefm-cms/tree/main/site/layouts/section): `site/layouts/section`
- [Site styles](https://github.com/ac-unefm/acunefm-cms/blob/main/src/css/main.scss): `src/css/main.scss`
- [Hugo site renderer](https://github.com/ac-unefm/acunefm-cms/blob/main/site/config.toml): `site/config.toml`

### Hosting and access

- **Netlify Identity**
- **Netlify hosting**

### Other components

- **Site editor**
- **Site visitor**

## Connections

- Site editor → Netlify CMS: manages content (evidence: `README.md`)
- Netlify CMS → Netlify Identity: controls access (evidence: `README.md`)
- Netlify CMS → Home preview: registers preview (evidence: `src/js/cms.js`)
- Netlify CMS → Post preview: registers preview (evidence: `src/js/cms.js`)
- Netlify CMS → Products preview: registers preview (evidence: `src/js/cms.js`)
- Netlify CMS → Values preview: registers preview (evidence: `src/js/cms.js`)
- Netlify CMS → Contact preview: registers preview (evidence: `src/js/cms.js`)
- Home preview → Jumbotron component: renders (evidence: `src/js/cms-preview-templates/home.js`)
- Products preview → Jumbotron component: renders (evidence: `src/js/cms-preview-templates/products.js`)
- Values preview → Jumbotron component: renders (evidence: `src/js/cms-preview-templates/values.js`)
- Site editor → Page and post content: edits (evidence: `README.md`)
- Page and post content → Hugo site renderer: provides page data
- Hugo site renderer → Page layouts: renders pages
- Page layouts → Reusable partials: composes pages (evidence: `README.md`)
- Hugo site renderer → Blog pages: renders posts
- Hugo site renderer → Section pages: renders sections
- Site visitor → Netlify hosting: visits site (evidence: `README.md`)
- Netlify hosting → Hugo site renderer: deploys site (evidence: `README.md`)
