Versions in this module Expand all Collapse all v0 v0.0.1 Feb 4, 2024 v0.0.0 Feb 4, 2024 Changes in this version + const KindHome + const KindPage + const KindSection + var DefaultFormats = Formats + var DefaultTypes = Types + var HTMLFormat = Format + var HTMLType = newMediaType("text", "html") + func CreateSiteOutputFormats(allFormats Formats) map[string]Formats + func UniqueStringsReuse(s []string) []string + type Format struct + BaseName string + MediaType Type + Name string + type Formats []Format + func DecodeFormats(mediaTypes Types) Formats + func (formats Formats) FromFilename(filename string) (f Format, found bool) + func (formats Formats) GetByName(name string) (f Format, found bool) + func (formats Formats) Len() int + func (formats Formats) Less(i, j int) bool + func (formats Formats) Swap(i, j int) + type LayoutDescriptor struct + Baseof bool + Kind string + KindVariants string + Lang string + Layout string + LayoutOverride bool + RenderingHook bool + Section string + Type string + type LayoutHandler struct + func NewLayoutHandler() *LayoutHandler + func (l *LayoutHandler) For(d LayoutDescriptor, f Format) ([]string, error) + type OutputFormat struct + Format Format + Rel string + func NewOutputFormat(relPermalink, permalink string, f Format) OutputFormat + func (o OutputFormat) Permalink() string + func (o OutputFormat) RelPermalink() string + type OutputFormats []OutputFormat + type TargetPaths struct + Link string + SubResourceBaseLink string + SubResourceBaseTarget string + TargetFilename string + func (p TargetPaths) GetBasePath(isRelativeURL bool) string + func (p TargetPaths) PermalinkForBaseURL(link, baseURL string) string + func (p TargetPaths) PermalinkForOutputFormat() string + func (p TargetPaths) PrependBasePath(rel string, isAbs bool) string + func (p TargetPaths) RelPermalink() string + type Type struct + Delimiter string + MainType string + SubType string + func (m Type) FullSuffix() string + func (m Type) Type() string + type Types []Type + func DecodeTypes() Types