shithub: hugo

Download patch

ref: 4352156a2730eddda6b05b66b73d910e4ac9abff
parent: 52976da0ec67361556538e41fe18286ea4dfe878
author: bogem <albertnigma@gmail.com>
date: Thu Nov 24 15:30:17 EST 2016

commands, helpers: Fix docs

--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -434,9 +434,9 @@
 }
 
 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
-	// in memory
+	// in memory.
 	if renderToMemory {
 		hugofs.SetDestination(new(afero.MemMapFs))
 		// Rendering to memoryFS, publish to Root regardless of publishDir.
--- a/helpers/url.go
+++ b/helpers/url.go
@@ -147,7 +147,7 @@
 	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 {
 	url, err := url.Parse(in)
 	if err != nil {