Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FilepathSeparator = string(filepath.Separator)
Functions ¶
This section is empty.
Types ¶
type ComponentPath ¶
type FileMetaInfo ¶
type FilesystemUnwrapper ¶
FilesystemUnwrapper returns the underlying filesystem.
type FilesystemsUnwrapper ¶
FilesystemsUnwrapper returns the underlying filesystems.
type OriginFs ¶
type OriginFs interface {
// Origin is Hugo's source file system.
// Note that this will always be a "plain" Afero filesystem:
// * afero.OsFs when running in production
// * afero.MemMapFs for many of the tests.
Origin() afero.Fs
// Publish is where Hugo publishes its rendered content.
// It's mounted inside publishDir (default /public).
Publish() afero.Fs
// Working is a read-only file system
// restricted to the project working dir.
Working() afero.Fs
}
OriginFs holds the core filesystems used by Hugo.
type WalkCallback ¶
type WalkFunc ¶
type WalkFunc func(path string, info FileMetaInfo) error
type WalkHook ¶
type WalkHook func(dir FileMetaInfo, path string, readdir []FileMetaInfo) ([]FileMetaInfo, error)
type WalkwayConfig ¶
type WalkwayConfig struct {
// One or both of these may be pre-set.
Info FileMetaInfo // The start info.
DirEntries []FileMetaInfo // The start info's dir entries.
IgnoreFile func(filename string) bool // Optional
// Some optional flags.
FailOnNotExist bool // If set, return an error if a directory is not found.
SortDirEntries bool // If set, sort the dir entries by Name before calling the WalkFn, default is ReaDir order.
}
Click to show internal directories.
Click to hide internal directories.