Blog Writing Guide
How to Write a Blog Post
- Create a new Markdown file in the
content/blog/directory - Name it using kebab-case (e.g.,
my-awesome-blog-post.md) - Use the template below as a starting point
- Set
published: truewhen ready to publish, orfalseto save as draft
Template
---
title: "Your Blog Post Title"
description: "A compelling 150-160 character description for SEO and social sharing"
date: "2025-11-23"
updatedDate: "2025-11-23" # Optional: only if you update the post later
author: "cookie-banner-team" # Or your name
tags: ["Tag1", "Tag2", "Tag3"] # 3-5 relevant tags
published: true # Set to false to save as draft
image: "/images/blog/your-image.jpg" # Optional: featured image URL
---
# Your Blog Post Title
<div class="direct-answer">
<strong>Direct Answer:</strong> Start with a clear, direct answer to the main question your post addresses. This helps with SEO and user experience.
[Learn more about this topic →](/relevant-link)
</div>
---
## Table of Contents
- [First Section](#first-section)
- [Second Section](#second-section)
- [Conclusion](#conclusion)
- [Frequently Asked Questions](#frequently-asked-questions)
---
## First Section
Write your content here using Markdown. You can use:
- **Bold text**
- *Italic text*
- [Links](https://example.com)
- Lists
- Code blocks
### Subsection
You can nest headings for better organization.
---
## Second Section
More content here...
---
## Conclusion
Wrap up your post with key takeaways.
---
## Frequently Asked Questions
### Question 1?
**Answer:** Your answer here.
### Question 2?
**Answer:** Your answer here.
---
**Ready to learn more?** [Call to action →](/link)
Required Frontmatter Fields
title: The blog post title (appears in H1 and SEO)description: Meta description for SEO (150-160 characters)date: Publication date (YYYY-MM-DD format)author: Author name (defaults to "cookie-banner-team")tags: Array of tags for categorizationpublished:trueto publish,falsefor draft
Optional Frontmatter Fields
updatedDate: When you last updated the postimage: Featured image URL (appears at top of post)schema: FAQ structured data (for advanced SEO)
Tips
- Use descriptive headings - They become anchor links automatically
- Include a Table of Contents - Helps with navigation
- Add a "Direct Answer" box - Great for SEO and UX
- Use tags wisely - Helps readers find related content
- Include FAQs - Common questions improve SEO
- Add internal links - Link to other pages on your site
- Use images - Visual content improves engagement
Example Tags
- "PIPEDA", "CASL", "GDPR", "Privacy Law"
- "Cookie Consent", "Compliance", "Legal"
- "WordPress", "Shopify", "Webflow", "Technical"
- "Canada", "Quebec", "Law 25"
- "Analytics", "Marketing", "Advertising"
Publishing Checklist
- [ ] Frontmatter is complete and correct
- [ ]
published: trueis set - [ ] Content is proofread
- [ ] Links are working
- [ ] Images are optimized
- [ ] Tags are relevant
- [ ] Table of contents is accurate
Read more
What to Put in Your Privacy Policy, Right Now
No-nonsense checklist and copy-paste prompt to build a privacy and cookie policy for Canadian websites, covering PIPEDA, Québec Law 25, cookies and consent.
What Is the PIPEDA Compliance Checklist for Canadian Websites?
PIPEDA compliance checklist for Canadian websites includes cookie consent, privacy policy, user rights, and security measures. Essential requirements for any business collecting personal data in Canada.
GDPR Cookie Consent Requirements 2025: Complete Compliance Guide
GDPR requires explicit opt-in consent for cookies in Europe. Learn the 6 core requirements, avoid €20M fines, and implement compliant cookie banners. Free checklist included.