chore: reorganize project into monorepo

This commit is contained in:
2026-03-28 10:40:22 +08:00
parent 60367a5f51
commit 1455d93246
201 changed files with 30081 additions and 93 deletions

View File

@@ -0,0 +1,191 @@
- id: 1
pid: 1
title: "Welcome to Termi Blog"
slug: "welcome-to-termi"
content: |
# Welcome to Termi Blog
This is the first post on our new blog built with Astro and Loco.rs backend.
## Features
- 🚀 Fast performance with Astro
- 🎨 Terminal-style UI design
- 💬 Comments system
- 🔗 Friend links
- 🏷️ Tags and categories
## Code Example
```rust
fn main() {
println!("Hello, Termi!");
}
```
Stay tuned for more posts!
excerpt: "Welcome to our new blog built with Astro and Loco.rs backend."
category: "general"
published: true
pinned: true
tags:
- welcome
- astro
- loco-rs
- id: 2
pid: 2
title: "Rust Programming Tips"
slug: "rust-programming-tips"
content: |
# Rust Programming Tips
Here are some essential tips for Rust developers:
## 1. Ownership and Borrowing
Understanding ownership is crucial in Rust. Every value has an owner, and there can only be one owner at a time.
## 2. Pattern Matching
Use `match` expressions for exhaustive pattern matching:
```rust
match result {
Ok(value) => println!("Success: {}", value),
Err(e) => println!("Error: {}", e),
}
```
## 3. Error Handling
Use `Result` and `Option` types effectively with the `?` operator.
Happy coding!
excerpt: "Essential tips for Rust developers including ownership, pattern matching, and error handling."
category: "tech"
published: true
pinned: false
tags:
- rust
- programming
- tips
- id: 3
pid: 3
title: "Building a Blog with Astro"
slug: "building-blog-with-astro"
content: |
# Building a Blog with Astro
Astro is a modern static site generator that delivers lightning-fast performance.
## Why Astro?
- **Zero JavaScript by default**: Ships less JavaScript to the client
- **Island Architecture**: Hydrate only interactive components
- **Framework Agnostic**: Use React, Vue, Svelte, or vanilla JS
- **Great DX**: Excellent developer experience with hot module replacement
## Getting Started
```bash
npm create astro@latest
cd my-astro-project
npm install
npm run dev
```
## Conclusion
Astro is perfect for content-focused websites like blogs.
excerpt: "Learn why Astro is the perfect choice for building fast, content-focused blogs."
category: "tech"
published: true
pinned: false
tags:
- astro
- web-dev
- static-site
- id: 4
pid: 4
title: "Terminal UI Design Principles"
slug: "terminal-ui-design"
content: |
# Terminal UI Design Principles
Terminal-style interfaces are making a comeback in modern web design.
## Key Elements
1. **Monospace Fonts**: Use fonts like Fira Code, JetBrains Mono
2. **Dark Themes**: Black or dark backgrounds with vibrant text colors
3. **Command Prompts**: Use `$` or `>` as visual indicators
4. **ASCII Art**: Decorative elements using text characters
5. **Blinking Cursor**: The iconic terminal cursor
## Color Palette
- Background: `#0d1117`
- Text: `#c9d1d9`
- Accent: `#58a6ff`
- Success: `#3fb950`
- Warning: `#d29922`
- Error: `#f85149`
## Implementation
Use CSS to create the terminal aesthetic while maintaining accessibility.
excerpt: "Learn the key principles of designing beautiful terminal-style user interfaces."
category: "design"
published: true
pinned: false
tags:
- design
- terminal
- ui
- id: 5
pid: 5
title: "Loco.rs Backend Framework"
slug: "loco-rs-framework"
content: |
# Introduction to Loco.rs
Loco.rs is a web and API framework for Rust inspired by Rails.
## Features
- **MVC Architecture**: Model-View-Controller pattern
- **SeaORM Integration**: Powerful ORM for database operations
- **Background Jobs**: Built-in job processing
- **Authentication**: Ready-to-use auth system
- **CLI Generator**: Scaffold resources quickly
## Quick Start
```bash
cargo install loco
loco new myapp
cd myapp
cargo loco start
```
## Why Loco.rs?
- Opinionated but flexible
- Production-ready defaults
- Excellent documentation
- Active community
Perfect for building APIs and web applications in Rust.
excerpt: "An introduction to Loco.rs, the Rails-inspired web framework for Rust."
category: "tech"
published: true
pinned: false
tags:
- rust
- loco-rs
- backend
- api