From 4094a1e12c593ebaffe5bf28a1cd0a12330b1a60 Mon Sep 17 00:00:00 2001 From: coliff Date: Wed, 26 Feb 2025 20:35:12 +0900 Subject: [PATCH] all: Typo fixes --- CONTRIBUTING.md | 2 +- cache/httpcache/httpcache.go | 4 ++-- hugolib/pagesfromdata/pagesfromgotmpl.go | 2 +- hugolib/segments/segments.go | 2 +- hugolib/site_output.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a1f56927d..ddd3efcf2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ ->**Note:** We would apprecitate if you hold on with any big refactorings (like renaming deprecated Go packages), mainly because of potential for extra merge work for future coming in in the near future. +>**Note:** We would appreciate if you hold on with any big refactoring (like renaming deprecated Go packages), mainly because of potential for extra merge work for future coming in in the near future. # Contributing to Hugo diff --git a/cache/httpcache/httpcache.go b/cache/httpcache/httpcache.go index 7fa76e5c3..2e8d9b8b4 100644 --- a/cache/httpcache/httpcache.go +++ b/cache/httpcache/httpcache.go @@ -42,7 +42,7 @@ var DefaultConfig = Config{ // Config holds the configuration for the HTTP cache. type Config struct { - // Configures the HTTP cache behaviour (RFC 9111). + // Configures the HTTP cache behavior (RFC 9111). // When this is not enabled for a resource, Hugo will go straight to the file cache. Cache Cache @@ -52,7 +52,7 @@ type Config struct { } type Cache struct { - // Enable HTTP cache behaviour (RFC 9111) for these rsources. + // Enable HTTP cache behavior (RFC 9111) for these resources. For GlobMatcher } diff --git a/hugolib/pagesfromdata/pagesfromgotmpl.go b/hugolib/pagesfromdata/pagesfromgotmpl.go index 2ee273718..58bb72978 100644 --- a/hugolib/pagesfromdata/pagesfromgotmpl.go +++ b/hugolib/pagesfromdata/pagesfromgotmpl.go @@ -270,7 +270,7 @@ type sourceInfo struct { } func (p PagesFromTemplate) CloneForSite(s page.Site) *PagesFromTemplate { - // We deliberately make them share the same DepenencyManager and Store. + // We deliberately make them share the same DependencyManager and Store. p.PagesFromTemplateOptions.Site = s p.PagesFromTemplateDeps = p.PagesFromTemplateOptions.DepsFromSite(s) p.buildState = &BuildState{ diff --git a/hugolib/segments/segments.go b/hugolib/segments/segments.go index 8f7c18121..941c4ea5c 100644 --- a/hugolib/segments/segments.go +++ b/hugolib/segments/segments.go @@ -44,7 +44,7 @@ func (e excludeInclude) ShouldExcludeCoarse(fields SegmentMatcherFields) bool { } // ShouldExcludeFine returns whether the given fields should be excluded. -// This is used for the finer grained checks, e.g. on invididual pages. +// This is used for the finer grained checks, e.g. on individual pages. func (e excludeInclude) ShouldExcludeFine(fields SegmentMatcherFields) bool { if e.exclude != nil && e.exclude(fields) { return true diff --git a/hugolib/site_output.go b/hugolib/site_output.go index 2744c0133..47778b8b0 100644 --- a/hugolib/site_output.go +++ b/hugolib/site_output.go @@ -80,7 +80,7 @@ func createSiteOutputFormats(allFormats output.Formats, outputs map[string]any, f, found := allFormats.GetByName(format) if !found { if rssDisabled && strings.EqualFold(format, "RSS") { - // This is legacy behaviour. We used to have both + // This is legacy behavior. We used to have both // a RSS page kind and output format. continue }