Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProcessor ¶
func NewProcessor(opts *Options) processors.Processor
NewProcessor creates a new Hugo WriProcess implementing processors#Processor
Types ¶
type FSWriter ¶
FSWriter is implementation of Writer interface for writing blobs to the file system at a designated path in a Hugo-specific way
type Options ¶
type Options struct { // PrettyUrls indicates if links will rewritten for Hugo will be // formatted for pretty url support or not. Pretty urls in Hugo // place built source content in index.html, which resides in a path segment with // the name of the file, making request URLs more resource-oriented. // Example: (source) sample.md -> (build) sample/index.html -> (runtime) ./sample PrettyUrls bool // IndexFileNames defines a list of file names that indicate // their content can be used as Hugo section files (_index.md). IndexFileNames []string // Writer is the underlying writer used by hugo#FSWriter to serialize // content Writer writers.Writer }
Options is the configuration options for creating Hugo implementations docforge interfaces
type Processor ¶
type Processor struct { // PrettyUrls indicates if links will rewritten for Hugo will be // formatted for pretty url support or not. Pretty urls in Hugo // place built source content in index.html, which resides in a path segment with // the name of the file, making request URLs more resource-oriented. // Example: (source) sample.md -> (build) sample/index.html -> (runtime) ./sample PrettyUrls bool // IndexFileNames defines a list of file names that indicate // their content can be used as Hugo section files (_index.md). IndexFileNames []string }
Processor is a processor implementation responsible to rewrite links on document that use source format (<path>/<name>.md) to destination format (<path>/<name> for sites configured for pretty URLs and <path>/<name>.html for sites configured for ugly URLs)
Click to show internal directories.
Click to hide internal directories.