Module

x/lume/core/file.ts>Data

🔥 Static site generator for Deno 🦕
Very Popular
Latest
interface Data
implements RawData
import { type Data } from "https://dotland.deno.dev/x/lume@v2.3.3/core/file.ts";

The data of a page/folder once loaded and processed

Properties

optional
title: string

The title of the page

optional
type: string

The type of the page (used to group pages in collections)

optional
id: string | number

The id of the page (used to identify a page in a collection)

tags: string[]

List of tags assigned to a page or folder

url: string

The url of a page

basename: string

The basename of the page

date: Date

The date creation of the page

The available components

page: Page

The page reference

optional
lang: string

The language of the page

optional
unmatchedLangUrl: string

Unmatched Language URL The url for when the user's language doesn't match with any of the site's available languages.

Valid values are:

  • External URL string (http, https), which is language selector page
  • Source path string (/), which is language selector page
  • Language code (en, gl, vi), which is fallback language page

This option is made for x-default feature.

optional
alternates: Data[]

Alternate pages (for languages)