aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib
diff options
context:
space:
mode:
authorOleksandr Redko <[email protected]>2023-05-22 20:11:12 +0300
committerBjørn Erik Pedersen <[email protected]>2023-06-19 09:26:29 +0200
commit9009c8cdca448e50704f7ecd1a3918c5919b0f37 (patch)
tree960aaa2b80a07c959360ad66fc79ebe7c0fa9632 /hugolib
parent12dc9a6e4acd5280a3e8b1658cbb96669fa97057 (diff)
downloadhugo-9009c8cdca448e50704f7ecd1a3918c5919b0f37.tar.gz
hugo-9009c8cdca448e50704f7ecd1a3918c5919b0f37.zip
all: Fix typos in function names and comments
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/config_test.go8
-rw-r--r--hugolib/configdir_test.go2
-rw-r--r--hugolib/datafiles_test.go2
-rw-r--r--hugolib/embedded_shortcodes_test.go2
-rw-r--r--hugolib/hugo_sites_build.go2
-rw-r--r--hugolib/pagecollections_test.go4
-rw-r--r--hugolib/site.go2
7 files changed, 11 insertions, 11 deletions
diff --git a/hugolib/config_test.go b/hugolib/config_test.go
index 02d25fa9b..56a03c6df 100644
--- a/hugolib/config_test.go
+++ b/hugolib/config_test.go
@@ -35,7 +35,7 @@ func TestLoadConfigLanguageParamsOverrideIssue10620(t *testing.T) {
files := `
-- hugo.toml --
baseURL = "https://example.com"
-disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "setion"]
+disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "section"]
title = "Base Title"
staticDir = "mystatic"
[params]
@@ -79,7 +79,7 @@ func TestLoadConfig(t *testing.T) {
files := `
-- hugo.toml --
baseURL = "https://example.com"
-disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "setion"]
+disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "section"]
title = "Base Title"
staticDir = "mystatic"
[params]
@@ -131,7 +131,7 @@ myparam = "svParamValue"
files := `
-- hugo.toml --
baseURL = "https://example.com"
-disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "setion"]
+disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "section"]
title = "Base Title"
defaultContentLanguage = "sv"
disableLanguages = ["sv"]
@@ -178,7 +178,7 @@ running = true
files := `
-- hugo.toml --
baseURL = "https://example.com"
-disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "setion"]
+disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "section"]
title = "Base Title"
[params]
p1 = "p1base"
diff --git a/hugolib/configdir_test.go b/hugolib/configdir_test.go
index 3ab84c1bd..559de6b22 100644
--- a/hugolib/configdir_test.go
+++ b/hugolib/configdir_test.go
@@ -30,7 +30,7 @@ b = "bc1"
-- hugo.toml --
baseURL = "https://example.com"
-disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "setion"]
+disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "section"]
ignoreErrors = ["error-missing-instagram-accesstoken"]
[params]
a = "a1"
diff --git a/hugolib/datafiles_test.go b/hugolib/datafiles_test.go
index 4fb3d5bdb..73586c31c 100644
--- a/hugolib/datafiles_test.go
+++ b/hugolib/datafiles_test.go
@@ -25,7 +25,7 @@ func TestData(t *testing.T) {
files := `
-- hugo.toml --
baseURL = "https://example.com"
-disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "setion"]
+disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "section"]
theme = "mytheme"
-- data/a.toml --
v1 = "a_v1"
diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go
index 8ff1435b6..6436f29a1 100644
--- a/hugolib/embedded_shortcodes_test.go
+++ b/hugolib/embedded_shortcodes_test.go
@@ -30,7 +30,7 @@ func TestEmbeddedShortcodes(t *testing.T) {
files := `
-- hugo.toml --
baseURL = "https://example.com"
-disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "setion"]
+disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT", "page", "section"]
ignoreErrors = ["error-missing-instagram-accesstoken"]
[params]
foo = "bar"
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go
index d90d9ce7b..c552b9de8 100644
--- a/hugolib/hugo_sites_build.go
+++ b/hugolib/hugo_sites_build.go
@@ -326,7 +326,7 @@ func (h *HugoSites) postProcess(l logg.LevelLogger) error {
// This will only be set when js.Build have been triggered with
// imports that resolves to the project or a module.
// Write a jsconfig.json file to the project's /asset directory
- // to help JS intellisense in VS Code etc.
+ // to help JS IntelliSense in VS Code etc.
if !h.ResourceSpec.BuildConfig().NoJSConfigInAssets && h.BaseFs.Assets.Dirs != nil {
fi, err := h.BaseFs.Assets.Fs.Stat("")
if err != nil {
diff --git a/hugolib/pagecollections_test.go b/hugolib/pagecollections_test.go
index abdfb9619..66f157781 100644
--- a/hugolib/pagecollections_test.go
+++ b/hugolib/pagecollections_test.go
@@ -235,7 +235,7 @@ func TestGetPage(t *testing.T) {
{"Root relative, no slash, root page", page.KindPage, nil, []string{"about.md", "ABOUT.md"}, "about page"},
{"Root relative, no slash, section", page.KindSection, nil, []string{"sect3"}, "section 3"},
{"Root relative, no slash, section page", page.KindPage, nil, []string{"sect3/page1.md"}, "Title3_1"},
- {"Root relative, no slash, sub setion", page.KindSection, nil, []string{"sect3/sect7"}, "another sect7"},
+ {"Root relative, no slash, sub section", page.KindSection, nil, []string{"sect3/sect7"}, "another sect7"},
{"Root relative, no slash, nested page", page.KindPage, nil, []string{"sect3/subsect/deep.md"}, "deep page"},
{"Root relative, no slash, OS slashes", page.KindPage, nil, []string{filepath.FromSlash("sect5/page3.md")}, "Title5_3"},
@@ -247,7 +247,7 @@ func TestGetPage(t *testing.T) {
// content root relative paths without a leading slash, the lookup
// returns /sect7. This undermines ambiguity detection, but we have no choice.
//{"Ambiguous", nil, []string{"sect7"}, ""},
- {"Section, ambigous", page.KindSection, nil, []string{"sect7"}, "Sect7s"},
+ {"Section, ambiguous", page.KindSection, nil, []string{"sect7"}, "Sect7s"},
{"Absolute, home", page.KindHome, nil, []string{"/", ""}, "home page"},
{"Absolute, page", page.KindPage, nil, []string{"/about.md", "/about"}, "about page"},
diff --git a/hugolib/site.go b/hugolib/site.go
index fca8bca75..7a3528929 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -885,7 +885,7 @@ func (s *Site) getLanguageTargetPathLang(alwaysInSubDir bool) string {
return s.getLanguagePermalinkLang(alwaysInSubDir)
}
-// get any lanaguagecode to prefix the relative permalink with.
+// get any language code to prefix the relative permalink with.
func (s *Site) getLanguagePermalinkLang(alwaysInSubDir bool) string {
if !s.h.isMultiLingual() || s.h.Conf.IsMultihost() {
return ""