]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
all: Fix typos
authorChristian Oliff <christianoliff@pm.me>
Thu, 24 Apr 2025 08:19:17 +0000 (17:19 +0900)
committerGitHub <noreply@github.com>
Thu, 24 Apr 2025 08:19:17 +0000 (10:19 +0200)
config/configProvider.go
hugolib/content_map_test.go
hugolib/filesystems/basefs.go
hugolib/integrationtest_builder.go
tpl/tplimpl/embedded/templates/_shortcodes/instagram.html
tpl/tplimpl/embedded/templates/_shortcodes/vimeo_simple.html

index 5bda2c55a65d198e5d0207c2db85520c4d4b3747..c21342dceeea57f8a556d8e855a7926c04425ca8 100644 (file)
@@ -76,7 +76,7 @@ type AllProvider interface {
 }
 
 // We cannot import the media package as that would create a circular dependency.
-// This interface defineds a sub set of what media.ContentTypes provides.
+// This interface defines a subset of what media.ContentTypes provides.
 type ContentTypesProvider interface {
        IsContentSuffix(suffix string) bool
        IsContentFile(filename string) bool
index c24790495ea0fca2caf70ad3ec8624f7e6f1a6be..f728621502d889d4d62780661bef6a8ddea20e81 100644 (file)
@@ -517,7 +517,7 @@ func TestHTMLNotContent(t *testing.T) {
 -- hugo.toml.temp --
 [contentTypes]
 [contentTypes."text/markdown"]
-# Emopty for now.
+# Empty for now.
 -- hugo.yaml.temp --
 contentTypes:
   text/markdown: {}
index 3e9b92087aa2ce43608e71155569f35524ece8a3..b32b8796ff2b6b58620461587db694dec829326d 100644 (file)
@@ -397,7 +397,7 @@ func (d *SourceFilesystem) mounts() []hugofs.FileMetaInfo {
        })
 
        // Filter out any mounts not belonging to this filesystem.
-       // TODO(bep) I think this is superflous.
+       // TODO(bep) I think this is superfluous.
        n := 0
        for _, mm := range m {
                if mm.Meta().Component == d.Name {
index 4ea6f420de951b8bdf3e52b1c44adc4d68a575d3..3c2f1ad747c998daf12fb69d4c4df832e7303d35 100644 (file)
@@ -918,7 +918,7 @@ type IntegrationTestConfig struct {
 
        // The files to use on txtar format, see
        // https://pkg.go.dev/golang.org/x/exp/cmd/txtar
-       // There are some conentions used in this test setup.
+       // There are some contentions used in this test setup.
        // - §§§ can be used to wrap code fences.
        // - §§ can be used to wrap multiline strings.
        // - filenames prefixed with sourcefilename: will be read from the file system relative to the current dir.
index 17188c6fd86a45072e231a427b3eba42fcf2540e..804038e7dba0ff70ea7d34f0bef8b7bac2480c1f 100644 (file)
@@ -3,7 +3,7 @@
   {{- with .Get 0 -}}
     {{- template "render-instagram" (dict "id" . "pc" $pc) -}}
   {{- else -}}
-    {{- errorf "The %q shortocde requires a single positional parameter, the ID of the Instagram post. See %s" .Name .Position -}}
+    {{- errorf "The %q shortcode requires a single positional parameter, the ID of the Instagram post. See %s" .Name .Position -}}
   {{- end -}}
 {{- end -}}
 
index 11f19b1f6f3f0ce4743ea84b9ff6b6e5af61f74e..86a6dfc9f4cc0a4b7edf40d2f4ba46684aab5e3f 100644 (file)
@@ -6,14 +6,14 @@
       {{- $ctx = merge $ctx (dict "id" . "class" ($.Get "class")) -}}
       {{- template "render-vimeo" $ctx -}}
     {{- else -}}
-      {{- errorf "The %q shortocde requires a single named parameter, the ID of the Vimeo video. See %s" .Name .Position -}}
+      {{- errorf "The %q shortcode requires a single named parameter, the ID of the Vimeo video. See %s" .Name .Position -}}
     {{- end -}}
   {{- else -}}
     {{- with .Get 0 -}}
       {{- $ctx = merge $ctx (dict "id" . "class" ($.Get 1)) -}}
       {{- template "render-vimeo" $ctx -}}
     {{- else -}}
-      {{- errorf "The %q shortocde requires a single positional parameter, the ID of the Vimeo video. See %s" .Name .Position -}}
+      {{- errorf "The %q shortcode requires a single positional parameter, the ID of the Vimeo video. See %s" .Name .Position -}}
     {{- end -}}
   {{- end -}}
 {{- end -}}