Skip to content
Projetos

Sobre

🔥🪰 Gerador de sites estáticos rápido e flexível

Desenvolvimento web e de aplicativos

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
+2
em 7 dias
+6
em 15 dias
+6
em 1 mês
+12

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

🔥Lume

Contributor Covenant

Lume is the Galician word for fire but also a (yet another) static site generator for Node. Previous Lume versions were available for Deno.

It's inspired by other general-purpose static site generators, such as Jekyll and Eleventy, but it's faster, simpler and easier to use and configure, besides being super flexible.

  • Supports multiple file formats, like Markdown, YAML, JavaScript, TypeScript, JSX, Vento and Nunjucks, and it's easy to extend.
  • You can hook any processor to transform assets, like Terser for Javascript or PostCSS for CSS.


v4

🔥 Lume 4.0 has been released and ported to Node. See the migration guide.

The tags in this repo are for v3 and older versions. Previous Lume releases for Deno relied on git tags. v4 is a monorepo and it's not tagged anymore.

Lume 4 runs on Node, so make sure you have version 24 LTS or newer installed. See Node documentation for more info.

The code is published on NPM under the @lumeland organization:

For more detailed information, please refer to the migration guide and the v4 release post. If, after consulting those, you are still having trouble migrating, please reach out on Discord or open an issue.

Quick start

Lume init vs npm create lume

The way to setup Lume 3 for new projects is using the init script deno run -A https://lume.land/init.ts. The equivalent script in Lume 4 is npm create lume@latest (@latest ensures npm uses the newest version of Lume to create the site, even if you have older versions in your npm cache). You can specify the project folder in the first argument. For example npm create lume@latest . will create a new project (an empty site) in the current folder.

The script detects if the folder already contains a Lume project and will ask you to migrate it to Node. If you confirm this action, it will create the files package.json and tsconfig.json and will install all dependencies detected in the deno.json and _config.ts files.

Note that this migration may not be complete. Depending on your site and configuration, maybe you need additional changes in your code. The script doesn't remove the Deno files (deno.json and company), it only creates the new files. So once your site is completely migrated, you will need to remove these files by yourself.

You can also start a site with one of the available themes, like Simple Blog:

npm create lume@latest -- --theme @lumeland/theme-simple-blog

Lume from scratch

For example, create your first page using the Vento file index.vto:

---
title: Welcome to my page
---
<html>
  <head>
    <title>{{ title }}</title>
  </head>
  <body>
    <h1>{{ title }}</h1>
  </body>
</html>

Build it:

npx @lumeland/lume@latest build

This command will compile your documents to HTML and save them into the directory _site.


Please see the CHANGELOG for the specifics of recent changes.

Licensed under the MIT License. See LICENSE for more information.

Explore projetos relacionados

Carregando…