Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Image ¶
func (*Image) SrcWidthHeight ¶
type ImageSrcSet ¶
type Page ¶
type Page struct { // Title is the page's title. Title string // Subtitle is the page's subtitle. Subtitle string // Created is the page creation time. Created time.Time // Updated is the time that the page was updated. Updated time.Time // Page path. Path string // Scratch data with page scope. Scratch *scratch.Scratch Content htemplate.HTML }
Page represents the meta data for a page.
type ReadSeekCloser ¶
type ReadSeekCloser interface { io.ReadSeeker io.Closer }
type Resource ¶
type Resource struct { // URI with leading slash and no trailing index file name. Path string // Modification time ModTime time.Time // Size in bytes Size int64 // FilePath is path to resource on disk. FilePath string // Redirect requests to this URL. Redirect string // Data is the page data. If set, data overrides the resource data // stored on disk. Data []byte // For use by commands. UpdateReason string }
Resource represents a resource on the site.
Click to show internal directories.
Click to hide internal directories.