Example Blog Post - How to Use This Template
This is an example blog post that demonstrates how to create and format your own blog posts using this portfolio template. Follow this structure to create engaging, well-formatted content.
Getting Started
To create a new blog post, simply follow these steps:
- Create a new HTML file in the
src/content/blogs/directory - Name your file using kebab-case (e.g.,
my-awesome-post.html) - Add the required frontmatter at the top
- Write your content using HTML
Frontmatter Requirements
Every blog post needs frontmatter with these required fields:
- title: The main title of your post
- excerpt: A brief description shown in the blog listing
- author: Your name
- date: Publication date in YYYY-MM-DD format
- readTime: Estimated reading time
- tags: Array of relevant tags
- featured: Boolean to mark as featured post
Content Formatting
You have full control over your content using HTML. Here are some common elements:
Text Formatting
Use bold text for emphasis and italic text for subtle emphasis. You can also use inline code for technical terms.
Code Blocks
For longer code examples, use code blocks:
// Example JavaScript code
function greetUser(name) {
return `Hello, ${name}! Welcome to our blog.`;
}
const message = greetUser("Reader");
console.log(message);
Lists and Organization
Use lists to organize information:
- Bullet points for unordered lists
- Great for feature lists or key points
- Easy to scan and read
- Numbered lists for step-by-step instructions
- Perfect for tutorials and guides
- Help readers follow along
Best Practices
Here are some tips for creating great blog posts:
- Keep paragraphs short for better readability
- Use headings to structure your content
- Include relevant tags for better discoverability
- Write engaging excerpts that encourage clicks
- Use images to break up text and add visual interest
Conclusion
This template gives you complete control over your blog content while maintaining a beautiful, professional appearance. Start creating your own posts and share your knowledge with the world!
Happy writing! 🚀