Skip to content

Commit a86bca8

Browse files
fix: move post template to _templates directory
- Move template to prevent it from being published - Update config to exclude templates and docs - Add more comprehensive template guidelines
1 parent ea9c2d7 commit a86bca8

File tree

3 files changed

+43
-37
lines changed

3 files changed

+43
-37
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ exclude:
5353
- vendor/cache/
5454
- vendor/gems/
5555
- vendor/ruby/
56+
- docs/
57+
- _templates/
5658

5759
# Replace the number with the default number of blog posts you want on each
5860
# page. A value of 0 will indicate that you don't want to paginate, and all

_templates/post.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Post Template
2+
3+
This is a template for creating new blog posts. Copy this file to the `_posts` directory and rename it following the format: `YYYY-MM-DD-title.md`.
4+
5+
---
6+
layout: post
7+
title: "Your Post Title Here"
8+
date: YYYY-MM-DD HH:MM:SS -0600
9+
category: category-name
10+
image: "/seo/YYYY-MM-DD.png"
11+
tags:
12+
- tag1
13+
- tag2
14+
published: true
15+
---
16+
17+
Your post content here. Some guidelines:
18+
19+
1. Use proper markdown formatting
20+
2. Include code blocks with language specification:
21+
```python
22+
def example():
23+
return "Hello, World!"
24+
```
25+
3. Use proper heading hierarchy (H2 -> H3 -> H4, as H1 is reserved for the post title)
26+
4. Include alt text for images:
27+
![Alt text for image](image-url)
28+
29+
## SEO Guidelines
30+
31+
1. Always include a relevant image in the front matter
32+
2. Keep titles under 60 characters
33+
3. Use descriptive categories and tags
34+
4. Ensure the post has a clear description
35+
36+
## Formatting Tips
37+
38+
1. Break up long paragraphs
39+
2. Use lists and headings for better readability
40+
3. Include code examples where relevant
41+
4. Link to related posts when possible

docs/POST_TEMPLATE.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)