Typo fixes

This commit is contained in:
coliff 2025-04-13 19:23:58 +09:00
parent 915ba3f7f0
commit cfdb2984e6
6 changed files with 7 additions and 7 deletions

View file

@ -76,7 +76,7 @@ type AllProvider interface {
} }
// We cannot import the media package as that would create a circular dependency. // 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 { type ContentTypesProvider interface {
IsContentSuffix(suffix string) bool IsContentSuffix(suffix string) bool
IsContentFile(filename string) bool IsContentFile(filename string) bool

View file

@ -517,7 +517,7 @@ func TestHTMLNotContent(t *testing.T) {
-- hugo.toml.temp -- -- hugo.toml.temp --
[contentTypes] [contentTypes]
[contentTypes."text/markdown"] [contentTypes."text/markdown"]
# Emopty for now. # Empty for now.
-- hugo.yaml.temp -- -- hugo.yaml.temp --
contentTypes: contentTypes:
text/markdown: {} text/markdown: {}

View file

@ -397,7 +397,7 @@ func (d *SourceFilesystem) mounts() []hugofs.FileMetaInfo {
}) })
// Filter out any mounts not belonging to this filesystem. // 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 n := 0
for _, mm := range m { for _, mm := range m {
if mm.Meta().Component == d.Name { if mm.Meta().Component == d.Name {

View file

@ -918,7 +918,7 @@ type IntegrationTestConfig struct {
// The files to use on txtar format, see // The files to use on txtar format, see
// https://pkg.go.dev/golang.org/x/exp/cmd/txtar // 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 code fences.
// - §§ can be used to wrap multiline strings. // - §§ can be used to wrap multiline strings.
// - filenames prefixed with sourcefilename: will be read from the file system relative to the current dir. // - filenames prefixed with sourcefilename: will be read from the file system relative to the current dir.

View file

@ -3,7 +3,7 @@
{{- with .Get 0 -}} {{- with .Get 0 -}}
{{- template "render-instagram" (dict "id" . "pc" $pc) -}} {{- template "render-instagram" (dict "id" . "pc" $pc) -}}
{{- else -}} {{- 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 -}}
{{- end -}} {{- end -}}

View file

@ -6,14 +6,14 @@
{{- $ctx = merge $ctx (dict "id" . "class" ($.Get "class")) -}} {{- $ctx = merge $ctx (dict "id" . "class" ($.Get "class")) -}}
{{- template "render-vimeo" $ctx -}} {{- template "render-vimeo" $ctx -}}
{{- else -}} {{- 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 -}} {{- end -}}
{{- else -}} {{- else -}}
{{- with .Get 0 -}} {{- with .Get 0 -}}
{{- $ctx = merge $ctx (dict "id" . "class" ($.Get 1)) -}} {{- $ctx = merge $ctx (dict "id" . "class" ($.Get 1)) -}}
{{- template "render-vimeo" $ctx -}} {{- template "render-vimeo" $ctx -}}
{{- else -}} {{- 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 -}} {{- end -}}
{{- end -}} {{- end -}}