]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
all: Typo fixes
authorChristian Oliff <christianoliff@pm.me>
Fri, 15 Mar 2024 16:25:52 +0000 (01:25 +0900)
committerGitHub <noreply@github.com>
Fri, 15 Mar 2024 16:25:52 +0000 (17:25 +0100)
13 files changed:
common/paths/pathparser.go
create/skeletons/theme/layouts/partials/terms.html
deps/deps.go
hugofs/dirsmerger.go
hugofs/rootmapping_fs.go
identity/identity.go
main_test.go
markup/goldmark/codeblocks/render.go
markup/internal/attributes/attributes.go
modules/config.go
releaser/releaser.go
resources/resource_transformers/tocss/dartsass/client.go
resources/resource_transformers/tocss/dartsass/transform.go

index 20f5ee30d7230b93f76707da2ccc0cffbda00ad2..951501406c6393080c8562fe106a799fffdf1bae 100644 (file)
@@ -239,7 +239,7 @@ const (
        // E.g. /blog/my-post.md
        PathTypeContentSingle
 
-       // All bewlow are bundled content files.
+       // All below are bundled content files.
 
        // Leaf bundles, e.g. /blog/my-post/index.md
        PathTypeLeaf
@@ -313,7 +313,7 @@ func (p *Path) norm(s string) string {
        return s
 }
 
-// IdentifierBase satifies identity.Identity.
+// IdentifierBase satisfies identity.Identity.
 func (p *Path) IdentifierBase() string {
        return p.Base()
 }
@@ -368,7 +368,7 @@ func (p *Path) Name() string {
        return p.s
 }
 
-// Name returns the last element of path withhout any extension.
+// Name returns the last element of path without any extension.
 func (p *Path) NameNoExt() string {
        if i := p.identifierIndex(0); i != -1 {
                return p.s[p.posContainerHigh : p.identifiers[i].Low-1]
@@ -376,7 +376,7 @@ func (p *Path) NameNoExt() string {
        return p.s[p.posContainerHigh:]
 }
 
-// Name returns the last element of path withhout any language identifier.
+// Name returns the last element of path without any language identifier.
 func (p *Path) NameNoLang() string {
        i := p.identifierIndex(p.posIdentifierLanguage)
        if i == -1 {
@@ -386,7 +386,7 @@ func (p *Path) NameNoLang() string {
        return p.s[p.posContainerHigh:p.identifiers[i].Low-1] + p.s[p.identifiers[i].High:]
 }
 
-// BaseNameNoIdentifier returns the logcical base name for a resource without any idenifier (e.g. no extension).
+// BaseNameNoIdentifier returns the logical base name for a resource without any identifier (e.g. no extension).
 // For bundles this will be the containing directory's name, e.g. "blog".
 func (p *Path) BaseNameNoIdentifier() string {
        if p.IsBundle() {
@@ -395,7 +395,7 @@ func (p *Path) BaseNameNoIdentifier() string {
        return p.NameNoIdentifier()
 }
 
-// NameNoIdentifier returns the last element of path withhout any identifier (e.g. no extension).
+// NameNoIdentifier returns the last element of path without any identifier (e.g. no extension).
 func (p *Path) NameNoIdentifier() string {
        if len(p.identifiers) > 0 {
                return p.s[p.posContainerHigh : p.identifiers[len(p.identifiers)-1].Low-1]
@@ -435,7 +435,7 @@ func (p *Path) PathNoIdentifier() string {
        return p.base(false, false)
 }
 
-// PathRel returns the path relativeto the given owner.
+// PathRel returns the path relative to the given owner.
 func (p *Path) PathRel(owner *Path) string {
        ob := owner.Base()
        if !strings.HasSuffix(ob, "/") {
index 47cf6e41c740c1de983cb4868d319d31cd476d4e..8a6ebec2a2cc3967aca21a8d253b130c17fa8d8e 100644 (file)
@@ -2,7 +2,7 @@
 For a given taxonomy, renders a list of terms assigned to the page.
 
 @context {page} page The current page.
-@context {string} taxonomy The taxonony.
+@context {string} taxonomy The taxonomy.
 
 @example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
 */}}
index 8778bff80271ec3a0e583080294e5051e1c808a6..78a5330b7e9fe63f08a5cd46430a6bf2e2d32347 100644 (file)
@@ -361,7 +361,7 @@ type BuildState struct {
 
        mu sync.Mutex // protects state below.
 
-       // A set of ilenames in /public that
+       // A set of filenames in /public that
        // contains a post-processing prefix.
        filenamesWithPostPrefix map[string]bool
 }
index 392353e274b3d29937ed5a4b01c5bab9ff4f9d62..9eedb5844383dee908f34ac34f88793b4188d16d 100644 (file)
@@ -42,7 +42,7 @@ var LanguageDirsMerger overlayfs.DirsMerger = func(lofi, bofi []fs.DirEntry) []f
 
 // AppendDirsMerger merges two directories keeping all regular files
 // with the first slice as the base.
-// Duplicate directories in the secnond slice will be ignored.
+// Duplicate directories in the second slice will be ignored.
 // This strategy is used for the i18n and data fs where we need all entries.
 var AppendDirsMerger overlayfs.DirsMerger = func(lofi, bofi []fs.DirEntry) []fs.DirEntry {
        for _, fi1 := range bofi {
index a304986688002d9e119425706eca22758d50f514..c91403c7979253dc56af58de5e900a5bc6f29396 100644 (file)
@@ -822,7 +822,7 @@ func (f *rootMappingDir) ReadDir(count int) ([]iofs.DirEntry, error) {
        return f.fs.collectDirEntries(f.name)
 }
 
-// Sentinal error to signal that a file is a directory.
+// Sentinel error to signal that a file is a directory.
 var errIsDir = errors.New("isDir")
 
 func (f *rootMappingDir) Stat() (iofs.FileInfo, error) {
index c799759df4dc87fd7cbf92b18fcb1c71d5cc4cac..f924f335c72bbf807b67f26f783a268f3246c7ab 100644 (file)
@@ -355,7 +355,7 @@ func (im *identityManager) String() string {
 }
 
 func (im *identityManager) forEeachIdentity(fn func(id Identity) bool) bool {
-       // The absense of a lock here is debliberate. This is currently opnly used on server reloads
+       // The absence of a lock here is deliberate. This is currently only used on server reloads
        // in a single-threaded context.
        for id := range im.ids {
                if fn(id) {
index 75f5ed949848f5d031dfc6323addae83bc20ee35..9dd2734d2de948909beff80ac19970769b41cc09 100644 (file)
@@ -134,7 +134,7 @@ var commonTestScriptsParam = testscript.Params{
                                fmt.Fprintf(ts.Stdout(), "%s %04o %s %s\n", fi.Mode(), fi.Mode().Perm(), fi.ModTime().Format(time.RFC3339Nano), fi.Name())
                        }
                },
-               // append appends to a file with a leaading newline.
+               // append appends to a file with a leading newline.
                "append": func(ts *testscript.TestScript, neg bool, args []string) {
                        if len(args) < 2 {
                                ts.Fatalf("usage: append FILE TEXT")
index 5f479bf23bbb90e1e34178d699f11fbb681a846f..67053640dfac73562baf145e3d648b98c39adbe4 100644 (file)
@@ -147,7 +147,7 @@ type codeBlockContext struct {
        ordinal int
 
        // This is only used in error situations and is expensive to create,
-       // to deleay creation until needed.
+       // to delay creation until needed.
        pos       htext.Position
        posInit   sync.Once
        createPos func() htext.Position
index 4e81afe040e7486426fe975d348466433cb5b674..15bed7039ab5ff7df6e5a31c0a900b16effbae6e 100644 (file)
@@ -95,7 +95,7 @@ func New(astAttributes []ast.Attribute, ownerType AttributesOwnerType) *Attribut
                case []byte:
                        // Note that we don't do any HTML escaping here.
                        // We used to do that, but that changed in #9558.
-                       // Noww it's up to the templates to decide.
+                       // Now it's up to the templates to decide.
                        vv = string(vvv)
                default:
                        panic(fmt.Sprintf("not implemented: %T", vvv))
@@ -175,7 +175,7 @@ func (a *AttributesHolder) OptionsSlice() []Attribute {
 
 // RenderASTAttributes writes the AST attributes to the given as attributes to an HTML element.
 // This is used by the default HTML renderers, e.g. for headings etc. where no hook template could be found.
-// This performs HTML esacaping of string attributes.
+// This performs HTML escaping of string attributes.
 func RenderASTAttributes(w hugio.FlexiWriter, attributes ...ast.Attribute) {
        for _, attr := range attributes {
 
index abb938ac0c404abaaee1484d30885b86a031d813..2f1168d3ac69d40fa9c0dbd9dec6fb999a4f9083 100644 (file)
@@ -270,7 +270,7 @@ type Config struct {
 
        // When enabled, we will pick the vendored module closest to the module
        // using it.
-       // The default behaviour is to pick the first.
+       // The default behavior is to pick the first.
        // Note that there can still be only one dependency of a given module path,
        // so once it is in use it cannot be redefined.
        VendorClosest bool
index e50a3ba31e223ac6979fd21879618b4637d32f15..254bda5b3e0d7ccc87d60843ac960380144db9ae 100644 (file)
@@ -29,7 +29,7 @@ import (
 
 const commitPrefix = "releaser:"
 
-// New initialises a ReleaseHandler.
+// New initializes a ReleaseHandler.
 func New(skipPush, try bool, step int) (*ReleaseHandler, error) {
        if step < 1 || step > 2 {
                return nil, fmt.Errorf("step must be 1 or 2")
index 4b8ca97eb88c22d2b298f833d663e9a102f0d061..e6f5567e4af45cb6319b160a68e2de6e4f130cb2 100644 (file)
@@ -11,7 +11,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-// Package dartsass integrates with the Dass Sass Embedded protocol to transpile
+// Package dartsass integrates with the Dart Sass Embedded protocol to transpile
 // SCSS/SASS.
 package dartsass
 
index 17f16a6885118c2f02da2331aa0dc5097681ba5a..52d24da7dc1a4b9a04198e86c8c87699fba9eaec 100644 (file)
@@ -181,7 +181,7 @@ func (t importResolver) CanonicalizeURL(url string) (string, error) {
                }
        }
 
-       // Not found, let Dart Dass handle it
+       // Not found, let Dart Sass handle it
        return "", nil
 }