Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct { Slug string `json:"slug"` Title string `json:"title"` Active bool `json:"active,omitempty"` Expanded bool `json:"expanded,omitempty"` Sort *int `json:"sort,omitempty"` // contains filtered or unexported fields }
Node is a recursive node in a page tree.
type Resp ¶
type Resp struct { Title string `json:"title"` // Human-readable title. Slug string `json:"slug"` // URL-slug. URL string `json:"url"` UpdatedAt string `json:"updated_at"` // Body update time. Image string `json:"image"` // Path/URL/Placeholder to image. Message string `json:"message"` // Message to show at top Body string `json:"body"` // Main content of the page. Sidebar string `json:"sidebar"` // The sidebar of the page. Sort *int `json:"sort"` // The order that the tab should appear in on the page Expanded bool `json:"expanded"` // Should the Nav-tree rooted in this node always be expanded one step when loaded? Anchors []anchor.Anchor `json:"anchors"` // The list of anchors to headers in the body. }
Resp is the response we serve for file queries.
Click to show internal directories.
Click to hide internal directories.