arctic
Types
pub type Collection {
Collection(
directory: String,
parse: fn(String) -> Result(Page),
index: Option(fn(List(Page)) -> Element(Nil)),
rss: Option(fn(List(Page)) -> String),
ordering: fn(Page, Page) -> Order,
)
}
Constructors
-
Collection( directory: String, parse: fn(String) -> Result(Page), index: Option(fn(List(Page)) -> Element(Nil)), rss: Option(fn(List(Page)) -> String), ordering: fn(Page, Page) -> Order, )
pub type Config {
Config(
render_home: fn(List(ProcessedCollection)) -> Element(Nil),
main_pages: List(MainPage),
)
}
Constructors
-
Config( render_home: fn(List(ProcessedCollection)) -> Element(Nil), main_pages: List(MainPage), )
pub type MainPage {
MainPage(id: String, html: Element(Nil))
}
Constructors
-
MainPage(id: String, html: Element(Nil))
pub type Page {
Page(
id: String,
html: Element(Nil),
metadata: Dict(String, String),
title: String,
blerb: String,
tags: List(String),
date: Option(Time),
)
}
Constructors
-
Page( id: String, html: Element(Nil), metadata: Dict(String, String), title: String, blerb: String, tags: List(String), date: Option(Time), )
pub type ProcessedCollection {
ProcessedCollection(collection: Collection, pages: List(Page))
}
Constructors
-
ProcessedCollection(collection: Collection, pages: List(Page))