-
Notifications
You must be signed in to change notification settings - Fork 354
Theme and Template Workflow
GEOFlow’s theme system is not meant to replace live frontend code directly. It is built around a preview-first workflow.
A theme package is responsible only for the presentation layer, including:
- header
- footer
- homepage
- category page
- article page
- archive page
- theme styles and design tokens
It should not break these system contracts:
- routing
- category / article / archive query logic
- SEO rules
- Open Graph
- structured data
- multilingual behavior
- Markdown rendering rules for article content and list summaries
For the current Laravel rewrite, the runtime theme override path is:
resources/views/theme/<theme-id>/
├── manifest.json
├── home.blade.php
├── category.blade.php
├── article.blade.php
├── archive-index.blade.php
└── archive-month.blade.php
The system resolves views in this order:
theme.<theme-id>.<template>- built-in
site.<template>fallback
The geoflow-template Skill may still output design artifacts such as:
themes/<theme-id>/
├── manifest.json
├── tokens.json
├── mapping.json
├── assets/
│ └── theme.css
└── templates/
├── header.php
├── footer.php
├── home.php
├── category.php
├── article.php
└── archive.php
Where:
-
manifest.jsonholds theme metadata -
tokens.jsonholds colors, radii, shadows, fonts, and visual tokens -
mapping.jsondescribes module mapping -
theme.csscarries the theme styling
Those artifacts are useful for review and iteration, but the production Laravel view override must be copied or converted into resources/views/theme/<theme-id>/.
The safest workflow is:
- define the reference site or target visual direction
- use
geoflow-templateto extract module mapping and tokens - build the theme package
- preview it dynamically first
- activate it in admin only after preview approval
This matters because it:
- protects the live frontend
- uses real data in preview
- supports iteration
- keeps rollback simple
Current preview routes include:
/preview/<theme-id>//preview/<theme-id>/category/<slug>/preview/<theme-id>/article/<slug>/preview/<theme-id>/archive
Preview uses real database-backed content, not static sample HTML.
In Site Settings, GEOFlow can:
- show the active theme
- preview home / category / article / archive pages
- switch back to the default frontend
- activate a theme package
Recommendation:
- preview first
- keep the default theme available
- treat activation as a controlled step, not as experimentation
Homepage, category, and archive list cards already clean display summaries by removing:
#**- list markers
- leftover link artifacts
That keeps summaries readable instead of exposing raw Markdown fragments.
Theme work is most useful when:
- the content workflow is already stable
- the knowledge base is already meaningful
- the frontend direction is clear
- multi-site or multi-theme output is becoming important
If the content layer is still unstable, theme work should stay secondary.
In one sentence:
Themes should serve the content system, not override or distort it.
So the correct order is:
- stabilize the system first
- then theme it
- preview first
- activate second
- 首页
- 快速上手
- 常见问题
- 部署指南
- 部署脚本使用指南
- 部署检查清单
- 模板与主题工作流
- 模型接入指南
- 什么是 GEOFlow
- GEOFlow 方法论
- 使用边界与内容底线
- 适用场景
- 场景部署与使用方式
- 核心能力总览
- 推荐采用路径
- Skill / CLI / API 生态
- 路线图
- 作者与项目
- Home
- Getting Started
- FAQ
- Deployment Guide
- Deployment Scripts Guide
- Deployment Checklist
- Theme and Template Workflow
- Model Setup Guide
- What Is GEOFlow
- GEOFlow Methodology
- Principles and Content Boundaries
- Use Cases
- Deployment Patterns by Scenario
- Core Capabilities
- Recommended Adoption Path
- Skill / CLI / API Ecosystem
- Roadmap
- Author and Project