]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
all: Typo fixes
authorChristian Oliff <christianoliff@pm.me>
Thu, 11 Apr 2024 07:23:17 +0000 (16:23 +0900)
committerGitHub <noreply@github.com>
Thu, 11 Apr 2024 07:23:17 +0000 (09:23 +0200)
commands/server.go
helpers/path.go
hugolib/content_map.go
hugolib/content_map_page.go
hugolib/page__meta.go
langs/i18n/i18n.go
markup/goldmark/goldmark_config/config.go
resources/errorResource.go
testscripts/commands/server.txt

index afc539c445aced3370616aec6dfb1cb5c1609233..870283bbad133128f8ce56a8c974c9b29ef18566 100644 (file)
@@ -307,7 +307,7 @@ func (f *fileServer) createEndpoint(i int) (*http.ServeMux, net.Listener, string
                        if redirect := serverConfig.MatchRedirect(requestURI); !redirect.IsZero() {
                                // fullName := filepath.Join(dir, filepath.FromSlash(path.Clean("/"+name)))
                                doRedirect := true
-                               // This matches Netlify's behaviour and is needed for SPA behaviour.
+                               // This matches Netlify's behavior and is needed for SPA behavior.
                                // See https://docs.netlify.com/routing/redirects/rewrites-proxies/
                                if !redirect.Force {
                                        path := filepath.Clean(strings.TrimPrefix(requestURI, baseURL.Path()))
index 4a6c9a688006365032ea6fef30fe92f36624695f..ba95be6056462885b1f8b00fe2bcb00d0542184a 100644 (file)
@@ -374,7 +374,7 @@ func cacheDirDefault(cacheDir string) string {
        // Turns out that Cloudflare also sets NETLIFY=true in its build environment,
        // but all of these 3 should not give any false positives.
        if os.Getenv("NETLIFY") == "true" && os.Getenv("PULL_REQUEST") != "" && os.Getenv("DEPLOY_PRIME_URL") != "" {
-               // Netlify's cache behaviour is not documented, the currently best example
+               // Netlify's cache behavior is not documented, the currently best example
                // is this project:
                // https://github.com/philhawksworth/content-shards/blob/master/gulpfile.js
                return "/opt/build/cache/hugo_cache/"
index 0b82bdf28f7fca4e8ac6da0e2fa67957d70eeea6..62cabec514c1907fb9856e6698c83399180e4ac0 100644 (file)
@@ -181,7 +181,7 @@ func (m *pageMap) AddFi(fi hugofs.FileMetaInfo) error {
 
                var rs *resourceSource
                if pi.IsContent() {
-                       // Create the page now as we need it at assemembly time.
+                       // Create the page now as we need it at assembly time.
                        // The other resources are created if needed.
                        pageResource, pi, err := m.s.h.newPage(
                                &pageMeta{
index ff0b05ed1ec4e8d35ce1319de50e437cdc86e423..8682d5d4af0e3e0e69cb02409bc700bb01a11204 100644 (file)
@@ -133,7 +133,7 @@ type pageTrees struct {
 func (t *pageTrees) collectAndMarkStaleIdentities(p *paths.Path) []identity.Identity {
        key := p.Base()
        var ids []identity.Identity
-       // We need only one identity sample per dimensio.
+       // We need only one identity sample per dimension.
        nCount := 0
        cb := func(n contentNodeI) bool {
                if n == nil {
index 7ab904357b7833783e397c9fff3ea0122ffffd14..ebf57f3b3026a896c3bcc827f8c1992b84bcdace 100644 (file)
@@ -676,7 +676,7 @@ params:
 }
 
 // shouldList returns whether this page should be included in the list of pages.
-// glogal indicates site.Pages etc.
+// global indicates site.Pages etc.
 func (p *pageMeta) shouldList(global bool) bool {
        if p.isStandalone() {
                // Never list 404, sitemap and similar.
index 74af0775405ca49498963275c35abd4dea840dfc..e97ec8b8d64f18e3e6d99c2a5d46188c56461053 100644 (file)
@@ -87,7 +87,7 @@ func (t Translator) initFuncs(bndl *i18n.Bundle) {
                                                // the context.Context.
                                                // A common pattern is to pass Page to i18n, and use .ReadingTime etc.
                                                // We need to improve this, but that requires some upstream changes.
-                                               // For now, just creata a wrepper.
+                                               // For now, just create a wrapper.
                                                templateData = page.PageWithContext{Page: p, Ctx: ctx}
                                        }
                                }
index 9a14bf9b88477f57560e55acd4ff552036713a74..c22852b29af26b387239adda65cbb149b166d360 100644 (file)
@@ -217,6 +217,6 @@ type Parser struct {
 type ParserAttribute struct {
        // Enables custom attributes for titles.
        Title bool
-       // Enables custom attributeds for blocks.
+       // Enables custom attributes for blocks.
        Block bool
 }
index d94207b79e8519d568f00a2f0042db0c1bca33e7..220869fc1db407fd7cf50e751e033dca38eb0f74 100644 (file)
@@ -27,7 +27,7 @@ import (
 
 var (
        _ error = (*errorResource)(nil)
-       // Imnage covers all current Resource implementations.
+       // Image covers all current Resource implementations.
        _ images.ImageResource = (*errorResource)(nil)
        // The list of user facing and exported interfaces in resource.go
        // Note that if we're missing some interface here, the user will still
index 83e3ceafdb6735e7100b973d9219870066dfcea2..a28e4d69832b903e56fa3108cc93bb295e29fde4 100644 (file)
@@ -9,7 +9,7 @@ httpget $HUGOTEST_BASEURL_0 'Title: Hugo Server Test' $HUGOTEST_BASEURL_0 'Serve
 httpget ${HUGOTEST_BASEURL_0}doesnotexist 'custom 404'
 httpget ${HUGOTEST_BASEURL_0}livereload.js 'function'
 
-# By defauilt, the server renders to memory.
+# By default, the server renders to memory.
 ! exists public/index.html
 
 stopServer