diff --git a/config/configProvider.go b/config/configProvider.go index 5bda2c55a..c21342dce 100644 --- a/config/configProvider.go +++ b/config/configProvider.go @@ -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 diff --git a/hugolib/content_map_test.go b/hugolib/content_map_test.go index c24790495..f72862150 100644 --- a/hugolib/content_map_test.go +++ b/hugolib/content_map_test.go @@ -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: {} diff --git a/hugolib/filesystems/basefs.go b/hugolib/filesystems/basefs.go index 3e9b92087..b32b8796f 100644 --- a/hugolib/filesystems/basefs.go +++ b/hugolib/filesystems/basefs.go @@ -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 { diff --git a/hugolib/integrationtest_builder.go b/hugolib/integrationtest_builder.go index 4ea6f420d..3c2f1ad74 100644 --- a/hugolib/integrationtest_builder.go +++ b/hugolib/integrationtest_builder.go @@ -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. diff --git a/tpl/tplimpl/embedded/templates/_shortcodes/instagram.html b/tpl/tplimpl/embedded/templates/_shortcodes/instagram.html index 17188c6fd..804038e7d 100644 --- a/tpl/tplimpl/embedded/templates/_shortcodes/instagram.html +++ b/tpl/tplimpl/embedded/templates/_shortcodes/instagram.html @@ -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 -}} diff --git a/tpl/tplimpl/embedded/templates/_shortcodes/vimeo_simple.html b/tpl/tplimpl/embedded/templates/_shortcodes/vimeo_simple.html index 11f19b1f6..86a6dfc9f 100644 --- a/tpl/tplimpl/embedded/templates/_shortcodes/vimeo_simple.html +++ b/tpl/tplimpl/embedded/templates/_shortcodes/vimeo_simple.html @@ -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 -}}