]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
all: Fix typos
authorChristian Oliff <christianoliff@pm.me>
Sun, 11 Feb 2024 11:51:33 +0000 (20:51 +0900)
committerGitHub <noreply@github.com>
Sun, 11 Feb 2024 11:51:33 +0000 (13:51 +0200)
output/outputFormat.go
resources/internal/resourcepaths.go
resources/page/permalinks.go
resources/page/site.go
resources/resource.go
resources/resource_spec.go
tpl/collections/collections.go
tpl/fmt/fmt.go
tpl/internal/resourcehelpers/helpers.go
watcher/filenotify/poller.go
watchtestscripts.sh

index 981d895b6b81aa263ab4bb780b29343bfd78f1fb..d249c72b933ccc3e0b37d5b122ad8f015a8242b3 100644 (file)
@@ -72,10 +72,10 @@ type Format struct {
        // Setting this will make this output format control the value of
        // .Permalink and .RelPermalink for a rendered Page.
        // If not set, these values will point to the main (first) output format
-       // configured. That is probably the behaviour you want in most situations,
+       // configured. That is probably the behavior you want in most situations,
        // as you probably don't want to link back to the RSS version of a page, as an
        // example. AMP would, however, be a good example of an output format where this
-       // behaviour is wanted.
+       // behavior is wanted.
        Permalinkable bool `json:"permalinkable"`
 
        // Setting this to a non-zero value will be used as the first sort criteria.
index 21c65e2ca76430058d0ee891ac552d6c54b78b9d..71d3538dd9a6ff5ef4f7b8e5cc0ee61c7f9770bc 100644 (file)
@@ -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 {
index 1677d3a90c454f1145c46b6c3acfb7586c3cec12..67c63c4b21f8a55aa56f0143d5b5498dcc40de13 100644 (file)
@@ -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
 
index f2118a3b291db9e3a41d49f4a27caad18388b137..132ab9fe85660fb637f282f4e5b09a930e8200c0 100644 (file)
@@ -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
index c11756bcaabdb16cac15852370b6b07f38076a4e..900b05a5f490f1b343cdb839fded7bdc9f0788cd 100644 (file)
@@ -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.
index 5fdcdd831f970baba5fd19e90d530bdcc79ec2dc..0bb507083c424f8bd5ed999f937dbbe54f84b489 100644 (file)
@@ -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
index 61fd138e9f8ee1a17741ad7e90dd066f06264433..2107cf5a0eb58f00abeec0c8d670cc702df177e5 100644 (file)
@@ -572,7 +572,7 @@ func (ns *Namespace) Seq(args ...any) ([]int, error) {
        return seq, nil
 }
 
-// Shuffle returns list l in a randomised order.
+// Shuffle returns list l in a randomized order.
 func (ns *Namespace) Shuffle(l any) (any, error) {
        if l == nil {
                return nil, errors.New("both count and seq must be provided")
index 04dbd339c5692a3dd2f001d6d824bccd53de3cf2..e9c18360abd72980ce1f5a2df2f822dfbc388519 100644 (file)
@@ -47,7 +47,7 @@ func (ns *Namespace) Print(args ...any) string {
        return _fmt.Sprint(args...)
 }
 
-// Printf returns string representation of args formatted with the layouut in format.
+// Printf returns string representation of args formatted with the layout in format.
 func (ns *Namespace) Printf(format string, args ...any) string {
        return _fmt.Sprintf(format, args...)
 }
@@ -87,12 +87,12 @@ func (ns *Namespace) Warnidf(id, format string, args ...any) string {
        return ""
 }
 
-// Warnmf is epxermimental and subject to change at any time.
+// Warnmf is experimental and subject to change at any time.
 func (ns *Namespace) Warnmf(m any, format string, args ...any) string {
        return ns.logmf(ns.logger.Warn(), m, format, args...)
 }
 
-// Errormf is epxermimental and subject to change at any time.
+// Errormf is experimental and subject to change at any time.
 func (ns *Namespace) Errormf(m any, format string, args ...any) string {
        return ns.logmf(ns.logger.Error(), m, format, args...)
 }
index 2d50c59a4ccfd2b61700a468107c085d38e331db..a777c8c3b1c9c93a271ed9856579d3a8d10bda7f 100644 (file)
@@ -38,7 +38,7 @@ func ResolveIfFirstArgIsString(args []any) (resources.ResourceTransformer, strin
        return v2, v1, ok2
 }
 
-// This roundabout way of doing it is needed to get both pipeline behaviour and options as arguments.
+// This roundabout way of doing it is needed to get both pipeline behavior and options as arguments.
 func ResolveArgs(args []any) (resources.ResourceTransformer, map[string]any, error) {
        if len(args) == 0 {
                return nil, nil, errors.New("no Resource provided in transformation")
index cedb5d07970e4b88cd0bd1828210bda7d3225f8f..5bf07c8f1ed809582cd8d296bdf7c67322ec65fc 100644 (file)
@@ -201,7 +201,7 @@ func (r *recording) record(filename string) error {
        r.FileInfo = fi
 
        // If fi is a dir, we watch the files inside that directory (not recursively).
-       // This matches the behaviour of fsnotity.
+       // This matches the behavior of fsnotity.
        if fi.IsDir() {
                f, err := os.Open(filename)
                if err != nil {
index 2f6be079eec20b828e37e64912eea8abd673cb77..bf61d0cc3168be5eb7576678cbf817a79ce075c8 100755 (executable)
@@ -3,5 +3,5 @@
 trap exit SIGINT
 
 # I use "run tests on save" in my editor.
-# Unfortantly, changes to text files does not trigger this. Hence this workaround.
+# Unfortunately, changes to text files does not trigger this. Hence this workaround.
 while true; do find testscripts -type f -name "*.txt" | entr -pd touch main_test.go; done
\ No newline at end of file