---
title: "How to build a static site with Lume"
description: "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."
url: "https://swe.quest/articles/how-to-build-a-static-site-with-lume-03f00be9f04a60ba"
canonical: "https://deno.com/blog/build-a-static-site-with-lume"
source: "Deno"
published: "2022-12-07"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["frontend","javascript","ci-cd","deployment"]
---

# How to build a static site with Lume

A post on [Deno](https://swe.quest/sources/deno.md), published 2022-12-07, 7 min read, How-to. Original: [https://deno.com/blog/build-a-static-site-with-lume](https://deno.com/blog/build-a-static-site-with-lume)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)

## Prerequisites

- Deno basics
- Markdown front matter
- GitHub Actions ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))

## Keywords

Lume, Deno, Deno Deploy, Nunjucks, GitHub Actions, missing.css

## Related posts

- [How to Build a Blog with Fresh](https://swe.quest/articles/how-to-build-a-blog-with-fresh-9e3aca10e6ed3207.md): Deno · 2022-10-25 · Medium · 6 min read · TypeScript, Frontend, Serverless
  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.
- [How to setup a blog with Hugo and Deno Deploy](https://swe.quest/articles/how-to-setup-a-blog-with-hugo-and-deno-deploy-7b19707c0d32a809.md): Deno · 2022-04-27 · Medium · 5 min read · CI/CD, Deployment, CDN & edge, JavaScript
  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.
- [Static Files on Deno Deploy](https://swe.quest/articles/static-files-on-deno-deploy-c3e4ce7a78a60f71.md): Deno · 2022-02-10 · Medium · 6 min read · Serverless, CDN & edge, Deployment, JavaScript, CI/CD
  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.
- [Build an Astro site with Deno](https://swe.quest/articles/build-an-astro-site-with-deno-cd90d47e8a2fd029.md): Deno · 2024-10-29 · Medium · 4 min read · Frontend, JavaScript, TypeScript
  Deno 2's Node and npm compatibility lets you scaffold and run an Astro project entirely with Deno tooling: \`deno -A npm:create-astro@latest\` to scaffold, \`deno install --allow-scripts\` for dependencies, and \`deno task dev\` to run package.json scripts.
- [A Whole Website in a Single JavaScript File, cont'd](https://swe.quest/articles/a-whole-website-in-a-single-javascript-file-cont-d-596fba773a32d01c.md): Deno · 2022-09-13 · Medium · 4 min read · JavaScript, Frontend, TypeScript
  A complete bagel-search web app with server-side rendered JSX, dynamic routes and form handling fits in one Deno JavaScript file.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
