TOML

Add support for TOML to store data and create pages.

Options See on deno.land

extensions string[] object

The list of extensions this plugin applies to

Default:
[ ".toml" ]

Description

This plugin allows you to create pages and store data using the TOML format.

Installation

Import this plugin in your _config.ts file to use it:

import lume from "lume/mod.ts";
import toml from "lume/plugins/toml.ts";

const site = lume();

site.use(toml());

export default site;

Create pages

Create a file with the extension .toml in your src folder. For example:

title = "Welcome to my page"
layout = "layouts/main.njk"
content = "This is my first post using lume,\nI hope you like it!"

Create data files

Create a file with the name _data.toml or inside a _data directory.