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,37 @@
---
title: Building a Blog with Astro
slug: building-blog-with-astro
description: Learn why Astro is the perfect choice for building fast, content-focused blogs.
category: tech
post_type: article
pinned: false
published: true
tags:
- astro
- web-dev
- static-site
---
# Building a Blog with Astro
Astro is a modern static site generator that delivers lightning-fast performance.
## Why Astro?
- Zero JavaScript by default
- Island Architecture
- Framework Agnostic
- Great DX
## 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.

View File

@@ -0,0 +1,44 @@
---
title: Loco.rs Backend Framework
slug: loco-rs-framework
description: An introduction to Loco.rs, the Rails-inspired web framework for Rust.
category: tech
post_type: article
pinned: false
published: true
tags:
- rust
- loco-rs
- backend
- api
---
# Introduction to Loco.rs
Loco.rs is a web and API framework for Rust inspired by Rails.
## Features
- MVC Architecture
- SeaORM Integration
- Background Jobs
- Authentication
- CLI Generator
## 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.

View File

@@ -0,0 +1,38 @@
---
title: Rust Programming Tips
slug: rust-programming-tips
description: Essential tips for Rust developers including ownership, pattern matching, and error handling.
category: tech
post_type: article
pinned: false
published: true
tags:
- rust
- programming
- tips
---
# 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!

View File

@@ -0,0 +1,38 @@
---
title: Terminal UI Design Principles
slug: terminal-ui-design
description: Learn the key principles of designing beautiful terminal-style user interfaces.
category: design
post_type: article
pinned: false
published: true
tags:
- design
- terminal
- ui
---
# Terminal UI Design Principles
Terminal-style interfaces are making a comeback in modern web design.
## Key Elements
1. Monospace fonts
2. Dark themes
3. Command prompts
4. ASCII art
5. Blinking 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.

View File

@@ -0,0 +1,35 @@
---
title: Welcome to Termi Blog
slug: welcome-to-termi
description: Welcome to our new blog built with Astro and Loco.rs backend.
category: general
post_type: article
pinned: true
published: true
tags:
- welcome
- astro
- loco-rs
---
# 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!