aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources
diff options
context:
space:
mode:
authorChristian Oliff <[email protected]>2024-02-11 20:51:33 +0900
committerGitHub <[email protected]>2024-02-11 13:51:33 +0200
commit0672b5c76605132475ff18b8c526f1cf0d6affc3 (patch)
tree2af2eb9d8eb1458ed6c39b58328c7d21d0c522d2 /resources
parente309f82efe1885aa5b8030be48c36ba4432ddd7b (diff)
downloadhugo-0672b5c76605132475ff18b8c526f1cf0d6affc3.tar.gz
hugo-0672b5c76605132475ff18b8c526f1cf0d6affc3.zip
all: Fix typos
Diffstat (limited to 'resources')
-rw-r--r--resources/internal/resourcepaths.go2
-rw-r--r--resources/page/permalinks.go4
-rw-r--r--resources/page/site.go2
-rw-r--r--resources/resource.go2
-rw-r--r--resources/resource_spec.go2
5 files changed, 6 insertions, 6 deletions
diff --git a/resources/internal/resourcepaths.go b/resources/internal/resourcepaths.go
index 21c65e2ca..71d3538dd 100644
--- a/resources/internal/resourcepaths.go
+++ b/resources/internal/resourcepaths.go
@@ -21,7 +21,7 @@ import (
"github.com/gohugoio/hugo/common/paths"
)
-// ResourcePaths holds path information for a resouce.
+// ResourcePaths holds path information for a resource.
// All directories in here have Unix-style slashes, with leading slash, but no trailing slash.
// Empty directories are represented with an empty string.
type ResourcePaths struct {
diff --git a/resources/page/permalinks.go b/resources/page/permalinks.go
index 1677d3a90..67c63c4b2 100644
--- a/resources/page/permalinks.go
+++ b/resources/page/permalinks.go
@@ -30,7 +30,7 @@ import (
"github.com/gohugoio/hugo/resources/kinds"
)
-// PermalinkExpander holds permalin mappings per section.
+// PermalinkExpander holds permalink mappings per section.
type PermalinkExpander struct {
// knownPermalinkAttributes maps :tags in a permalink specification to a
// function which, given a page and the tag, returns the resulting string
@@ -422,7 +422,7 @@ func DecodePermalinksConfig(m map[string]any) (map[string]map[string]string, err
// [permalinks]
// key = '...'
- // To sucessfully be backward compatible, "default" patterns need to be set for both page and term
+ // To successfully be backward compatible, "default" patterns need to be set for both page and term
permalinksConfig[kinds.KindPage][k] = v
permalinksConfig[kinds.KindTerm][k] = v
diff --git a/resources/page/site.go b/resources/page/site.go
index f2118a3b2..132ab9fe8 100644
--- a/resources/page/site.go
+++ b/resources/page/site.go
@@ -29,7 +29,7 @@ import (
"github.com/gohugoio/hugo/navigation"
)
-// Site represents a site. There can be multople sites in a multilingual setup.
+// Site represents a site. There can be multiple sites in a multilingual setup.
type Site interface {
// Returns the Language configured for this Site.
Language() *langs.Language
diff --git a/resources/resource.go b/resources/resource.go
index c11756bca..900b05a5f 100644
--- a/resources/resource.go
+++ b/resources/resource.go
@@ -85,7 +85,7 @@ type ResourceSourceDescriptor struct {
// Set when its known up front, else it's resolved from the target filename.
MediaType media.Type
- // Used to track depenencies (e.g. imports). May be nil if that's of no concern.
+ // Used to track dependencies (e.g. imports). May be nil if that's of no concern.
DependencyManager identity.Manager
// A shared identity for this resource and all its clones.
diff --git a/resources/resource_spec.go b/resources/resource_spec.go
index 5fdcdd831..0bb507083 100644
--- a/resources/resource_spec.go
+++ b/resources/resource_spec.go
@@ -126,7 +126,7 @@ type Spec struct {
*SpecCommon
}
-// The parts of Spec that's comoon for all sites.
+// The parts of Spec that's common for all sites.
type SpecCommon struct {
incr identity.Incrementer
ResourceCache *ResourceCache