Export content as Markdown & HTML for any platform.
Not every publishing workflow runs through WordPress or webhooks. Newsmill exports pipeline content as clean Markdown and HTML files with structured frontmatter — ready for Hugo, Gatsby, Astro, Jekyll, or any system that consumes structured content files.
Overview
Newsmill's export feature produces clean Markdown files with YAML frontmatter containing article metadata: title, date, author, category, tags, excerpt, source URL, and any custom fields from your pipeline template. The body content uses standard CommonMark Markdown that renders correctly in any parser.
HTML export provides the same content in semantic HTML with clean class names. No inline styles, no framework-specific markup — just well-structured HTML elements that your CSS can style. Both formats include the same frontmatter metadata, making it easy to ingest into any content management system.
For teams using Git-based publishing workflows, Newsmill exports can be configured to write directly to a repository via the GitHub API or a webhook-triggered CI/CD pipeline. New articles appear as pull requests or direct commits to your content repository, integrating seamlessly with editorial review workflows that use Git branching and code review tools.
Setup guide
In your pipeline settings, select Markdown or HTML as the output format. Markdown is best for static site generators and Git-based workflows. HTML is best for CMS platforms that accept raw HTML content blocks.
Customize which metadata fields appear in the frontmatter. The default includes title, date, author, category, tags, and excerpt. Add custom fields to match your static site's content schema — weight, featured, series, or any key-value pair your templates expect.
Choose how exported files are delivered: download from the Newsmill dashboard, push to a GitHub repository via API, or deliver via webhook to a CI/CD pipeline that handles file placement and site rebuilds.
For static site generators, point your content directory at the exported files. For CI/CD workflows, configure your pipeline to trigger a site rebuild when new content arrives. Newsmill's webhook delivery includes metadata that your build scripts can use to determine file paths and deployment targets.
Advanced configuration & troubleshooting
Hugo integration: Export Markdown files with Hugo-compatible frontmatter (title, date, draft, tags, categories). Configure a GitHub Action that triggers on new commits to your content directory, runs hugo build, and deploys to your hosting provider. End-to-end automation from news source to published static site.
Gatsby and Astro: Both frameworks consume Markdown with frontmatter natively. Point your content collection at a directory synced with Newsmill exports. Gatsby's gatsby-source-filesystem and Astro's content collections handle the rest — including hot reloading during development.
Bulk export workflows: For teams that publish in batches, Newsmill supports bulk export of all pipeline content within a date range. Export a week's worth of articles as a ZIP archive containing structured Markdown files, ready for batch import into any CMS.
Custom frontmatter schemas: If your content platform expects specific fields (e.g., OpenGraph image, canonical URL, reading time), configure Newsmill to compute and include these in the frontmatter. Computed fields are populated automatically from article metadata and pipeline settings.
Related features
Ready to get started?
Export your pipeline content as Markdown or HTML — ready for any platform.