How to Build a Blog with Fresh
A markdown blog can be built with Fresh, Deno's edge-first framework that ships zero client JavaScript by default, using file-based routes, custom GET handlers and server-side rendering. Posts are read from a posts directory with Deno.readDir, front matter is parsed with the std library's extract, and individual posts are served via a dynamic [slug].tsx route that renders markdown through the gfm module with its stylesheet. The finished site deploys to Deno Deploy by linking a GitHub repo with main.ts as the entry point.
Related posts
- Fresh 1.0
Deno mediumAdeptFresh is a full stack web framework for Deno that renders pages just-in-time on the server and ships zero JavaScript to the client by default, using the islands architecture so only explicitly opted-in components are hydrated in the browser. It uses Preact and JSX/TSX on both server and client, has file-system routing with handlers for custom responses and async data loading, and has no build step: TypeScript and JSX are transpiled on demand, so deployments are near-instant. Version 1.0 is declared production-ready and is well suited to edge runtimes such as Deno Deploy, Netlify Edge Functions and Supabase Edge Functions.
- Fresh 1.1 - automatic JSX, plugins, DevTools, and more
Deno mediumAdeptFresh 1.1, Deno's zero-client-JS, no-build-step web framework, switches new projects to automatic JSX via the deno.json jsxImportSource setting. It also adds a first plugin system for injecting styles and scripts, with an official Twind plugin that drops the tw wrapper, plus Preact Signals and Preact DevTools support. Route handlers can call ctx.renderNotFound(), and middleware files can export an array of stacked handlers. Experimental Deno.serve support is opt-in via experimentalDenoServe. An update script with codemods migrates existing projects.
- How to build a static site with Lume
Deno mediumAdeptLume, a Deno-based static site generator, can produce a blog either from the prebuilt "Simple blog" theme or from scratch using Markdown posts, Nunjucks layouts in _includes, directory-level _data.yml variables, and a TypeScript index page that lists posts via the search helper. The site is deployed to Deno Deploy through a GitHub Actions workflow that runs `deno task build` and serves the `_site` output with deno_std's file_server.ts, or a custom serve.ts when Lume middleware is needed.
- A Whole Website in a Single JavaScript File
Deno mediumAdeptA demo multi-page website fits entirely in one JavaScript file and is server-rendered on demand at the edge with Deno. Routing uses a small `router` module built on `URLPattern`, and JSX is rendered server-side with `nanossr`, which styles via twind. Triple-slash reference comments select exactly which TypeScript libs (dom, dom.asynciterable, deno.ns) are loaded. Hosted on Deno Deploy, the site gets a perfect PageSpeed score and is served from 29 data centers over an anycast IP at no cost.
- How to setup a blog with Hugo and Deno Deploy
Deno mediumAdeptA Hugo static site can be published on Deno Deploy by building it in GitHub Actions and serving the generated public directory with Deno's standard-library file server, imported directly by URL with no download or compile step. The walkthrough covers installing Hugo, adding the ananke theme as a git submodule, creating posts, linking a GitHub repo to a Deno Deploy project in GitHub Actions mode, and a complete workflow YAML using peaceiris/actions-hugo and denoland/deployctl. Any static site generator works the same way, since Deno Deploy only needs to serve the built HTML files.