Module
jinks/author
src/jinks/author.pookaA new page starts as a draft, with its date written down rather than guessed later. This command changes source content only. It does not build the site or quietly replace a notebook that somebody has already opened.
API reference
run(values: List(String)) -> Result(String, String)
INFERRED
fn(List(String)) -> Result(String, String)Paths are relative to content/, not to the command's working directory.
jinks new posts/the-small-hours /path/to/site --title "The small hours"
filename_for(value: String) -> Result(String, String)
INFERRED
fn(String) -> Result(String, String)Validate before normalising or adding an extension: a parent segment must not disappear into a seemingly innocent filename. Unicode names use NFC.
source(title: String, day: String, layout: Option(String)) -> Result(
String,
String
)
INFERRED
fn(String, String, Option(String)) -> Result(String, String)JSON's quoted string encoding is also a valid TOML basic string here. It keeps quotes and backslashes in a title from becoming new metadata fields. Titles stay on one line, both in the envelope and in the Markdown heading.
let assert Ok(page) = author.source("A small beginning", "2024-02-29", None)
available(root: String, name: String) -> Result(Nil, String)
INFERRED
fn(String, String) -> Result(Nil, String)comparable(value: String) -> String
INFERRED
fn(String) -> Stringhelp() -> String
INFERRED
fn() -> String