# jacegem/log architecture

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

- Interactive diagram: https://gitdiagram.com/jacegem/log
- Repository: https://github.com/jacegem/log

## Overview

##### Main Components

a) Content Management Layer
- 'content' directory structure
- Different content types (pages, archives)
- Markdown processing flow

b) Theme Layer
- PaperMod theme integration
- Custom layouts and partials
- Shortcodes system

c) Build & Generation Layer
- Hugo build process
- Static site generation
- Development server

d) Integration Services
- GitHub workflows (publishing)
- Analytics (GTM)
- Comments (Disqus)

**[Content Layer] → [Hugo Processing] → [Static Output]**
- ↑
- [Theme Layer]
- ↑
- [Integration Services]

##### Detailed Component Breakdown

- Rectangles: Main components
- Rounded rectangles: Content types
- Hexagons: External services

##### Important Elements to Highlight

a) Content Processing:
- Markdown → HTML conversion
- Custom shortcodes processing
- Multilingual content handling (noticed Korean content)

b) Layout System:
- Base templates
- Partial templates
- Custom shortcodes
- Logseq-specific components

c) Integration Points:
- GitHub Actions workflow
- Analytics integration
- Disqus comments
- Search functionality

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph CL["Content Management Layer"]
        MC["Main Content"]
        AR["Archives"]
        PR["Pages Repository"]
        LC["Logseq Content"]
        MD["Mermaid Content"]
    end

    subgraph TL["Theme Layer"]
        BT["Base Theme (PaperMod)"]
        CL1["Custom Layouts"]
        CS["Custom Shortcodes"]
        PT["Partial Templates"]
        MI["Mermaid Integration"]
        LS["Logseq Shortcodes"]
    end

    subgraph BG["Build & Generation Layer"]
        HC["Hugo Configuration"]
        BLD["Build Process"]
        SSG["Static Site Generation"]
        BTP["Base Template"]
        RC["Robots Configuration"]
    end

    subgraph IS["Integration Services"]
        GH["GitHub Workflows"]
        AN["Analytics (GTM)"]
        DS["Disqus Comments"]
        SF["Search Functionality"]
    end

    subgraph SF1["Special Features"]
        BL["Backlinks System"]
        CF["Contact Form"]
        MD1["Mermaid Diagrams"]
    end

    CL --> BLD
    TL --> BLD
    BLD --> SSG
    IS --> SSG

    classDef default fill:#f9f9f9,stroke:#333,stroke-width:1px
    classDef content fill:#e1f3ff,stroke:#333
    classDef theme fill:#e1ffe1,stroke:#333
    classDef build fill:#ffe1e1,stroke:#333
    classDef integration fill:#f0e1ff,stroke:#333
    classDef special fill:#fff3e1,stroke:#333

    class CL,MC,AR,PR,LC,MD content
    class TL,BT,CL1,CS,PT,MI,LS theme
    class BG,HC,BLD,SSG,BTP,RC build
    class IS,GH,AN,DS,SF integration
    class SF1,BL,CF,MD1 special

    click MC "https://github.com/jacegem/log/tree/main/content/"
    click AR "https://github.com/jacegem/log/blob/main/content/archives.md"
    click PR "https://github.com/jacegem/log/tree/main/content/pages/"
    click LC "https://github.com/jacegem/log/tree/main/content/pages/logseq/"
    click MD "https://github.com/jacegem/log/tree/main/content/pages/mermaid/"
    click BT "https://github.com/jacegem/log/tree/main/themes/PaperMod/"
    click CL1 "https://github.com/jacegem/log/tree/main/layouts/_default/"
    click CS "https://github.com/jacegem/log/tree/main/layouts/shortcodes/"
    click PT "https://github.com/jacegem/log/tree/main/layouts/partials/"
    click MI "https://github.com/jacegem/log/blob/main/layouts/_default/_markup/render-codeblock-mermaid.html"
    click LS "https://github.com/jacegem/log/tree/main/layouts/shortcodes/logseq/"
    click GH "https://github.com/jacegem/log/blob/main/.github/workflows/publish.yml"
    click AN "https://github.com/jacegem/log/blob/main/layouts/partials/analytics-gtag.html"
    click DS "https://github.com/jacegem/log/blob/main/layouts/partials/disqus.html"
    click SF "https://github.com/jacegem/log/blob/main/layouts/shortcodes/search.html"
    click HC "https://github.com/jacegem/log/blob/main/config.yml"
    click BTP "https://github.com/jacegem/log/blob/main/layouts/_default/baseof.html"
    click RC "https://github.com/jacegem/log/blob/main/layouts/robots.txt"
    click BL "https://github.com/jacegem/log/blob/main/layouts/partials/backlinks.html"
    click CF "https://github.com/jacegem/log/blob/main/layouts/shortcodes/hint.html"
```
