Optionalconfig: FileWriterConfigCheck if a post already exists in the output directory
Base output directory
Post slug to check
True if post directory exists, false otherwise
Write a blog post with frontmatter and content to the filesystem
Base output directory (e.g., './blog')
Post slug (used as subdirectory name)
YAML frontmatter string (includes --- markers)
Markdown content body
Absolute path to the written file
Service for writing blog posts to the filesystem Handles directory creation, file writing, path validation, and error handling