lesssagoo
This commit is contained in:
22
posts/test-post.md
Normal file
22
posts/test-post.md
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
title: "Testing Hot Reloading"
|
||||
date: "2024-03-10"
|
||||
tags: ["test", "feature"]
|
||||
summary: "A test post to demonstrate hot reloading and date-based sorting"
|
||||
---
|
||||
|
||||
# Testing Hot Reloading
|
||||
|
||||
This is a test post to demonstrate the hot reloading feature of our blog system. When you add or modify a post, the changes should appear immediately without needing to refresh the page.
|
||||
|
||||
## Features Being Tested
|
||||
|
||||
1. Hot reloading of new posts
|
||||
2. File creation date sorting
|
||||
3. Real-time updates
|
||||
|
||||
## How It Works
|
||||
|
||||
The system uses `chokidar` to watch the `posts/` directory for changes. When a new file is added or modified, the blog automatically updates to show the latest content.
|
||||
|
||||
The posts are sorted by their file creation date, so newer posts appear at the top of the list.
|
||||
Reference in New Issue
Block a user