Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can build a lightweight, version-controlled publishing system by storing Markdown, templates, metadata, and assets in Git; using Metalsmith to transform those source files into a static site; and deploying the generated directory with Cloudflare Pages. GitHub Actions can run the build and deployment when you need explicit CI checks. This is a Git-based static publishing workflow—not a browser editor, database-backed content API, or role-management system.

What you are building

Metalsmith describes itself as “an extremely simple, pluggable static site generator for NodeJS.” It reads files from a source directory, passes their contents and metadata through plugins, and writes the transformed files to a destination directory (Metalsmith getting started). Markdown files can contain front matter such as a title, date, and template name. Plugins can convert Markdown, build collections, create permalinks, apply layouts, and modify file metadata.

The resulting directory contains ordinary HTML, CSS, JavaScript, images, and other assets. Cloudflare Pages serves that output. Editors publish by committing changes and opening a pull request or pushing to the configured branch; they do not edit through a supplied Metalsmith dashboard.

Choose who runs the build and deploy

Workflow Build and deployment owner Previews and branch behavior Best fit
Cloudflare Pages Git integration Pages installs dependencies, runs the configured build command, and publishes the configured output directory. Pages connects to GitHub or GitLab, uses a production branch, and can create preview deployments for other branches. The simplest setup with minimal custom CI.
GitHub Actions plus Cloudflare deployment tooling Your workflow installs dependencies, runs Metalsmith, performs checks, and invokes a supported Cloudflare deployment route such as Wrangler. You define the checks, branch gates, and deployment conditions in workflow files; preview behavior must be configured deliberately. Teams that need explicit CI steps, approvals, or custom deployment logic.

Do not configure both systems to deploy the same commit unless you intentionally want duplicate deployments. Pages’ Git integration is documented at Cloudflare’s Git integration guide. Cloudflare separately documents static-asset deployment and CI/CD use of Wrangler at Get Started: Static Assets and Workers. Confirm whether your target is Cloudflare Pages or a Workers static-assets project before adapting deployment commands.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Create the Metalsmith project

Recommended repository layout

site-repo/
├── content/          # Markdown and other source files
├── templates/        # Layouts used by your Metalsmith plugins
├── assets/            # CSS, JavaScript, images, fonts
├── metalsmith.js      # Build configuration
├── package.json
└── package-lock.json

The names are conventions. What matters is that the source and destination paths in your configuration agree with the paths used by your deployment target.

Define source, destination, and plugins

Install Metalsmith and the plugins appropriate to your site, then expose one build command in package.json. A typical script is:

{
  "scripts": {
    "build": "node metalsmith.js"
  }
}

Your metalsmith.js should select the content directory as the source, select a clean generated directory as the destination, and add the Markdown, collection, permalink, and layout plugins your templates require. The exact plugin chain depends on your content model; Metalsmith’s official deployment guidance explains the source-to-destination build concept at metalsmith.io/docs/deployment/.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Keep generated output out of the authored source directories. A predictable destination such as build/ or public/ is useful, but Pages will not infer a Metalsmith destination from a framework preset.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use front matter for editorial metadata

---
title: "A first post"
date: 2026-09-30
template: article
---

Your Markdown content starts here.

Configure the front-matter and layout plugins to read these fields. Decide how missing titles, invalid dates, drafts, and unknown templates should fail; a CI build that stops on malformed metadata is safer than silently publishing incomplete pages.

Build locally before connecting Cloudflare

  1. Commit package.json and package-lock.json so CI can reproduce dependency installation.
  2. Run npm ci in a clean checkout.
  3. Run npm run build.
  4. Inspect the generated destination directory and open its entry page locally with a static server.
  5. Check that links, asset paths, permalinks, metadata, and any collections match the URLs your site expects.

The build is successful only when the directory you inspect is the same directory you will configure Cloudflare to publish.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Option A: let Cloudflare Pages build from Git

  1. In Cloudflare, create a Pages project and connect the GitHub or GitLab repository.
  2. Select the production branch.
  3. Set the build command to npm run build.
  4. Set the output directory to the exact Metalsmith destination, such as build or public.
  5. Save the project and push a change. Pages installs dependencies, runs the command, and uploads that output directory.

Cloudflare states that “You do not need a framework to deploy with Cloudflare Pages.” The Pages configuration still needs an explicit command and output directory for a Metalsmith project (official Git integration guide). Branches other than production can receive preview deployments when the project settings and repository integration allow them.

Option B: run the build in GitHub Actions

Use Actions when you want linting, link checks, approvals, scheduled builds, or deployment rules that are easier to express in a workflow. The essential sequence is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Check out the repository.
  2. Install the locked dependencies with npm ci.
  3. Run npm run build.
  4. Run tests or validation against the generated directory.
  5. Deploy that directory with a currently supported Cloudflare route, such as Wrangler, using credentials stored as repository secrets or another short-lived authentication mechanism.

A conceptual workflow step looks like this:

- run: npm ci
- run: npm run build
- run: npx wrangler deploy

This is intentionally illustrative rather than a copy-and-paste production file: action versions, Wrangler authentication, the account/project settings, and whether the destination is Pages or Workers static assets change over time. Cloudflare’s current static-assets documentation describes wrangler deploy from CI/CD; verify the command, configuration, and target product in that documentation before enabling a production workflow (Cloudflare static assets and Workers).

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

Do not place API tokens in the repository or print them in logs. Restrict deployment credentials to the environment and branches that are allowed to publish.

Keep the publishing workflow predictable

Separate authored and generated files

  • Review Markdown, front matter, templates, and assets as source.
  • Do not hand-edit generated HTML; rebuild it from Git.
  • Ignore the destination directory unless your chosen deployment process explicitly requires committing generated output.

Make failures visible

  • Fail the build when required metadata is missing.
  • Check that every referenced layout and asset exists.
  • Use a preview deployment or a staging branch to inspect navigation and URLs before merging to production.
  • Record the Node.js version and dependency lockfile policy so local and CI builds use the same toolchain.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What this setup does—and does not—provide

Provided Not provided by Metalsmith alone
Git history, pull-request review, repeatable builds, front matter, templates, plugin-based transformations, and static hosting. Browser-based authoring, user accounts, editorial roles, database queries, content API endpoints, media-library management, or real-time editing.

If nontechnical authors need a graphical editor, you must add a separate interface that writes to the repository or introduce a different CMS architecture. If you need dynamic request handling on Cloudflare, evaluate a Workers application rather than treating Pages’ static output as a database-backed service.

Troubleshoot the common failures

Pages reports that no output was found

The configured output directory does not match Metalsmith’s destination, or the build wrote files somewhere else. Run the build locally, confirm the directory name and case, and use that exact path in Pages settings.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

The build works locally but fails in CI

Check that the lockfile is committed, the CI Node.js version is supported by your dependencies, and the workflow runs from the repository root. Use npm ci rather than an unconstrained install for reproducibility.

Pages and Actions publish twice

Disable one deployment owner for the affected branch, or clearly assign Pages previews and Actions production releases to separate branches and responsibilities.

Wrangler deploys the wrong target

Pages and Workers static assets are distinct products. Recheck the project configuration and follow the deployment instructions for the product you actually created instead of copying a command from the other product’s guide.

Operational checklist

  • Source files, templates, configuration, and package metadata are committed to Git.
  • Front matter and plugin behavior are defined for every content type.
  • The local build produces the expected static destination.
  • Exactly one system owns each production deployment.
  • Cloudflare’s output-directory setting matches the Metalsmith destination exactly.
  • Preview, validation, and credential rules are tested on a nonproduction branch.
  • Documentation links and commands are rechecked when Cloudflare or Wrangler changes its deployment model.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.