mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
commands, helpers: Fix docs
This commit is contained in:
parent
52976da0ec
commit
4352156a27
2 changed files with 3 additions and 3 deletions
|
@ -434,9 +434,9 @@ func watchConfig() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func build(watches ...bool) error {
|
func build(watches ...bool) error {
|
||||||
// Hugo writes the output to memory instead of the disk
|
// Hugo writes the output to memory instead of the disk.
|
||||||
// This is only used for benchmark testing. Cause the content is only visible
|
// This is only used for benchmark testing. Cause the content is only visible
|
||||||
// in memory
|
// in memory.
|
||||||
if renderToMemory {
|
if renderToMemory {
|
||||||
hugofs.SetDestination(new(afero.MemMapFs))
|
hugofs.SetDestination(new(afero.MemMapFs))
|
||||||
// Rendering to memoryFS, publish to Root regardless of publishDir.
|
// Rendering to memoryFS, publish to Root regardless of publishDir.
|
||||||
|
|
|
@ -147,7 +147,7 @@ func MakePermalink(host, plink string) *url.URL {
|
||||||
return base
|
return base
|
||||||
}
|
}
|
||||||
|
|
||||||
// AbsURL creates a absolute URL from the relative path given and the BaseURL set in config.
|
// AbsURL creates an absolute URL from the relative path given and the BaseURL set in config.
|
||||||
func (p *PathSpec) AbsURL(in string, addLanguage bool) string {
|
func (p *PathSpec) AbsURL(in string, addLanguage bool) string {
|
||||||
url, err := url.Parse(in)
|
url, err := url.Parse(in)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue