Documentation ¶
Overview ¶
Package ppath handles pages paths.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasePath ¶
BasePath returns a path that will take the given path all the way to the root using sequences of "..".
func Breadcrumbs ¶
Breadcrumbs returns breadcrumbs (context about the parent directories of the given URL). The breadcrumb parts are links. It also takes the given name user-friendly name for the root directory.
func Draft ¶
Draft returns whether the given path is a draft page that should be ignored in released builds, which is the case if the path starts with a dash.
Types ¶
type PreRenderData ¶
type PreRenderData struct { // Description contains the automatic page descriptions for each page URL. Description map[string]string // HTML contains the pre-rendered HTML for each page URL. HTML map[string]string }
PreRenderData contains the data printed in JSON by a pages app run with the generatehtml tag.
Click to show internal directories.
Click to hide internal directories.