Documentation ¶
Index ¶
- Variables
- type Paths
- func (p *Paths) AbsPathify(inPath string) string
- func (p *Paths) AllModules() modules.Modules
- func (p *Paths) GetBasePath(isRelativeURL bool) string
- func (p *Paths) GetLanguagePrefix() string
- func (p *Paths) GetTargetLanguageBasePath() string
- func (p *Paths) Lang() string
- func (p *Paths) RelPathify(filename string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var FilePathSeparator = string(filepath.Separator)
Functions ¶
This section is empty.
Types ¶
type Paths ¶
type Paths struct { Fs *hugofs.Fs Cfg config.AllProvider // Directories to store Resource related artifacts. AbsResourcesDir string AbsPublishDir string // When in multihost mode, this returns a list of base paths below PublishDir // for each language. MultihostTargetBasePaths []string }
func (*Paths) AbsPathify ¶
AbsPathify creates an absolute path if given a relative path. If already absolute, the path is just cleaned.
func (*Paths) AllModules ¶
func (*Paths) GetBasePath ¶
GetBasePath returns any path element in baseURL if needed.
func (*Paths) GetLanguagePrefix ¶
func (*Paths) GetTargetLanguageBasePath ¶
func (*Paths) RelPathify ¶
RelPathify trims any WorkingDir prefix from the given filename. If the filename is not considered to be absolute, the path is just cleaned.
Click to show internal directories.
Click to hide internal directories.