Skip to main content
Module

x/lume/core.ts>Page

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
class Page
extends Base
Re-export
import { Page } from "https://deno.land/x/lume@v1.13.1/core.ts";

A page of the site

Properties

content: Content | undefined

The content of this page

deprecated
readonly
dest: Dest
document: HTMLDocument | undefined

The parsed HTML code from the content

readonly
outputPath: string | undefined

Returns the output path of this page

Methods

duplicate(index: number | string, baseData?: Data): Page

Duplicate this page. Optionally, you can provide new data

deprecated
updateDest(dest: Partial<Dest>): void

Update the destination file. It also update the data.url accordingly

Static Methods

create(url: string, content: Content): Page

Convenient way to create a page dynamically with a url and content