# liemlyquan/liemly architecture

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

- Interactive diagram: https://gitdiagram.com/liemlyquan/liemly
- Repository: https://github.com/liemlyquan/liemly

## Overview

##### Project Type Identification
This is a static website built using the Hugo framework, which is a static site generator. The project follows a typical Hugo site structure with themes, content management, and static file generation.

##### Main Components

a. Content Management Layer:
- Content Directory (Markdown files)
- Archetypes (Templates)
- Configuration Files

b. Build/Generation Layer:
- Hugo Engine
- Asset Pipeline
- Resource Generation

c. Output Layer:
- Static Files (HTML, CSS, JS)
- Assets (images, fonts)

d. Deployment Layer:
- Netlify (indicated by netlify.toml)

##### Flow Direction
- Content → Hugo Engine → Static Output → Netlify

##### Detailed Component Breakdown

Content Management (Blue):
**/content**
- /posts
**/archetypes**
**config.toml**

Build Process (Green):
**Hugo Engine**
- Asset Pipeline
- SCSS Processing
- JS Bundling
- Resource Generation

Static Output (Orange):
**/public**
- HTML files
- CSS
- JavaScript
- Assets

##### Additional Elements

- File types and their purposes
- Build process steps
- Deployment workflow
- Theme integration

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Content
        MD[Content Files]
        ARC[Archetypes]
        CONF[Configuration]
    end

    subgraph Build
        HE[Hugo Engine]
        AP[Asset Pipeline]
        TH[Hugo-Coder Theme]
    end

    subgraph Static
        HTML[Static HTML]
        CSS[Stylesheets]
        JS[JavaScript]
        FONTS[Fonts]
        CAT[Categories]
        TAGS[Tags]
    end

    subgraph Deploy
        NET[Netlify]
    end

    MD --> HE
    ARC --> HE
    CONF --> HE
    TH --> HE
    HE --> AP
    AP --> |Generate| HTML
    AP --> |Process| CSS
    AP --> |Bundle| JS
    AP --> |Copy| FONTS
    AP --> |Generate| CAT
    AP --> |Generate| TAGS
    HTML --> NET
    CSS --> NET
    JS --> NET
    FONTS --> NET
    CAT --> NET
    TAGS --> NET

    classDef content fill:#a8d1f0,stroke:#333
    classDef build fill:#90ee90,stroke:#333
    classDef static fill:#ffd700,stroke:#333
    classDef deploy fill:#dda0dd,stroke:#333

    class MD,ARC,CONF content
    class HE,AP,TH build
    class HTML,CSS,JS,FONTS,CAT,TAGS static
    class NET deploy

    click MD "https://github.com/liemlyquan/liemly/tree/main/content/posts/"
    click ARC "https://github.com/liemlyquan/liemly/tree/main/archetypes/"
    click CONF "https://github.com/liemlyquan/liemly/blob/main/config.toml"
    click TH "https://github.com/liemlyquan/liemly/tree/main/themes/hugo-coder/"
    click HTML "https://github.com/liemlyquan/liemly/tree/main/public/"
    click CSS "https://github.com/liemlyquan/liemly/tree/main/public/css/"
    click JS "https://github.com/liemlyquan/liemly/tree/main/public/js/"
    click FONTS "https://github.com/liemlyquan/liemly/tree/main/public/fonts/"
    click CAT "https://github.com/liemlyquan/liemly/tree/main/public/categories/"
    click TAGS "https://github.com/liemlyquan/liemly/tree/main/public/tags/"
    click NET "https://github.com/liemlyquan/liemly/blob/main/netlify.toml"
    click AP "https://github.com/liemlyquan/liemly/tree/main/resources/_gen/assets/"
```
