Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Deno 5 min read How-to mediumAdept

How to setup a blog with Hugo and Deno Deploy

A 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.

Assumes: Git and GitHub basicsGitHub Actions workflows

Related posts

  • Static Files on Deno Deploy

    Deno mediumAdept

    Deno Deploy now stores static files alongside deployed code and distributes them to edge locations, where edge code reads them via Deno file system APIs (readFile, readDir, open, stat, etc.) or fetch. Because user code still controls responses, static assets can be auth-gated, given CORS headers, rewritten dynamically or streamed, and std's serveFile or oak handle Content-Type and Range requests. Files come from a linked GitHub repo automatically, or from build output uploaded with deployctl or a GitHub Action using OIDC without secrets. A Lume static site example deploys in about 25 seconds from push, 15 of which is runner startup; automatic mode deploys take 1-10s.

  • How to Build a Blog with Fresh

    Deno mediumAdept

    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.

  • How to build a static site with Lume

    Deno mediumAdept

    Lume, 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.

  • Build Your Own Cloud IDE with the Subhosting API

    Deno mediumAdept

    A cloud IDE can be built on the Deno Subhosting API, which programmatically deploys user code to Deno Deploy's global V8 isolate cloud within seconds. The walkthrough builds a Hono server with routes to list and create projects and deployments, plus a small TypeScript client that wraps the Subhosting REST endpoints with bearer-token auth. It also covers a server-rendered JSX page and an Ace Editor frontend that polls deployment status every five seconds. The deployment payload is explained in detail: entryPointUrl must map to a key in an assets map of files, and envVars inject credentials into the deployed code.

  • Build and Ship Astro Sites with Deno and Deno Deploy

    Deno mediumAdept

    Astro sites can be built with the Deno runtime and hosted on Deno Deploy in two modes. Static output from `npm run build` is served via the Deno standard library file server and auto-deployed from GitHub Actions. Server-rendered apps use Astro's `output: "server"` mode with a Deno adapter, a generated `server/entry.mjs` entrypoint, and npm scripts rewritten to run Astro through `deno run -A --unstable npm:astro`. A template app shows SSR form handling in component scripts, client-side delete calls to an API route, and data persistence that can be switched to Deno KV.

The quest for software engineering knowledge.

Look:
Layout: