Page class

Page is leaf node which cannot have other subpages.

Inheritance
Implementers

Constructors

Page({required String path, String? content, Map<String, dynamic> metadata = const <String, dynamic>{}})

Properties

aliases List
getter/setter pair
content String?
final
date DateTime?
no setter
hashCode int
The hash code for this object.
no setterinherited
isIndex bool
no setter
jinja bool
latefinal
metadata Map<String, dynamic>
final
path String
final
public bool
Public pages are build into public folder. When public is false, the page is not build. It is still accessible in templates in both cases.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List
latefinal
title String
latefinal

Methods

getBuildPath(Config config) String
Get final build path for this Page.
getPages() List<Page>
override
getPublicUrl(Config config, {bool isServe = false}) String
getUpdated(Config config) Future<DateTime?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
override
toString() String
A string representation of this object.
override
when<R>({R section(Section section)?, R page(Page page)?}) → R?
override

Operators

operator ==(Object other) bool
The equality operator.
inherited