Fix typos
authorYang Li <idealhack@gmail.com>
Sat, 7 Jul 2018 09:40:47 +0000 (17:40 +0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 7 Jul 2018 10:29:56 +0000 (12:29 +0200)
config/services/servicesConfig.go
docs/content/en/getting-started/code-toggle.md
docs/content/en/news/0.35-relnotes/index.md
docs/content/en/news/0.36.1-relnotes/index.md
docs/data/articles.toml
docs/themes/gohugoioTheme/src/js/tabs.js
docs/themes/gohugoioTheme/static/dist/app.bundle.js
hugolib/filesystems/basefs.go
hugolib/page.go
langs/language.go
resource/transform.go

index bc321141a2760504ca32da9c40d99577b20aa189..17664407e2ce8d316cbea7dc729f2aac0ed8b3a6 100644 (file)
@@ -66,7 +66,7 @@ func DecodeConfig(cfg config.Provider) (c Config, err error) {
 
        err = mapstructure.WeakDecode(m, &c)
 
-       // Keep backwards compability.
+       // Keep backwards compatibility.
        if c.GoogleAnalytics.ID == "" {
                // Try the global config
                c.GoogleAnalytics.ID = cfg.GetString(googleAnalyticsKey)
index 3e6b7da0d58b97f5114db6aac689b708af492519..b304d2c5bfd0af025a6c5c173edc60ceb0109989 100644 (file)
@@ -12,7 +12,7 @@ toc: true
 
 ## The Config Toggler!
 
-This is an exemple for the Config Toggle shortcode. 
+This is an example for the Config Toggle shortcode. 
 Its purpose is to let users choose a Config language by clicking on its corresponding tab. Upon doing so, every Code toggler on the page will be switched to the target language. Also, target language will be saved in user's `localStorage` so when they go to a different pages, Code Toggler display their last "toggled" config language.
 
 ## That Config Toggler
index 80b4afd7b35cc4c4266f4deb3f9f0a2ff9a69f76..104cbd222f14b2aff8b421be76cf5a8ec399a289 100644 (file)
@@ -82,7 +82,7 @@ Hugo now has:
 * Add a `GetPage` to the site benchmarks [a1956391](https://github.com/gohugoio/hugo/commit/a19563910eec5fed08f3b02563b9a7b38026183d) [@bep](https://github.com/bep) 
 * Add headless bundle support [0432c64d](https://github.com/gohugoio/hugo/commit/0432c64dd22e4610302162678bb93661ba68d758) [@bep](https://github.com/bep) [#4311](https://github.com/gohugoio/hugo/issues/4311)
 * Merge matching resources params maps [5a0819b9](https://github.com/gohugoio/hugo/commit/5a0819b9b5eb9e79826cfa0a65f235d9821b1ac4) [@bep](https://github.com/bep) [#4315](https://github.com/gohugoio/hugo/issues/4315)
-* Add some general code contribution criterias [78c86330](https://github.com/gohugoio/hugo/commit/78c863305f337ed4faf3cf0a23675f28b0ae5641) [@bep](https://github.com/bep) 
+* Add some general code contribution criteria [78c86330](https://github.com/gohugoio/hugo/commit/78c863305f337ed4faf3cf0a23675f28b0ae5641) [@bep](https://github.com/bep) 
 * Tighten page kind logic, introduce tests [8125b4b0](https://github.com/gohugoio/hugo/commit/8125b4b03d10eb73f8aea3f9ea41172aba8df082) [@vassudanagunta](https://github.com/vassudanagunta) 
 
 ## Fixes
index 59bf562970aa80ec3dd3354ee79c5976058e6754..00a5b346c0b91c5b0c521fa804874de49e8d0a1e 100644 (file)
@@ -25,7 +25,7 @@ You would experience errors of type:
 png: invalid format: not enough pixel data
 ```
 
-This commit fixes that by adding a mutex per image. This should also improve the performance, sligthly, as it avoids duplicate work.
+This commit fixes that by adding a mutex per image. This should also improve the performance, slightly, as it avoids duplicate work.
 
 The current workaround before this fix is to always operate on the original:
 
index 379ae55620e780eea3a8ab509cbab60ae6413c96..c2dda2914d6587011231ed17d3a25baa20983f07 100644 (file)
        date = "2016-10-22"
 
 [[article]]
-       title = "通过 Gitlab-cl 将 Hugo blog 自动部署至 GitHub <small>(Chinese, Continious integration)</small>"
+       title = "通过 Gitlab-cl 将 Hugo blog 自动部署至 GitHub <small>(Chinese, Continuous integration)</small>"
        url = "https://zetaoyang.github.io/post/2016/10/17/gitlab-cl.html"
        author = "Zetao Yang"
        date = "2016-10-17"
index dd90fdfa48b473388857411b1fa8fba2a2c71761..a689d474efb0cee1ffb345723515035091e95de3 100644 (file)
@@ -37,7 +37,7 @@ function toggleTabs(event) {
 for (i = 0; i < allTabs.length; i++) {
        allTabs[i].addEventListener("click", toggleTabs)
 }
-// Upon page load, if user has a prefered language in its localStorage, tabs are set to it.
+// Upon page load, if user has a preferred language in its localStorage, tabs are set to it.
 if(window.localStorage.getItem('configLangPref')) {
        toggleTabs(window.localStorage.getItem('configLangPref'))
 }
index 7ea75e36fc249e4acf786b8c54890bfcaed401b7..d623c80ef86fecb225da9a193be93e4ebcddbf2b 100644 (file)
@@ -399,7 +399,7 @@ function toggleTabs(event) {
 for (i = 0; i < allTabs.length; i++) {
        allTabs[i].addEventListener("click", toggleTabs);
 }
-// Upon page load, if user has a prefered language in its localStorage, tabs are set to it.
+// Upon page load, if user has a preferred language in its localStorage, tabs are set to it.
 if (window.localStorage.getItem('configLangPref')) {
        toggleTabs(window.localStorage.getItem('configLangPref'));
 }
@@ -2083,7 +2083,7 @@ function defaultClearTimeout () {
 } ())
 function runTimeout(fun) {
     if (cachedSetTimeout === setTimeout) {
-        //normal enviroments in sane situations
+        //normal environments in sane situations
         return setTimeout(fun, 0);
     }
     // if setTimeout wasn't available but was latter defined
@@ -2108,7 +2108,7 @@ function runTimeout(fun) {
 }
 function runClearTimeout(marker) {
     if (cachedClearTimeout === clearTimeout) {
-        //normal enviroments in sane situations
+        //normal environments in sane situations
         return clearTimeout(marker);
     }
     // if clearTimeout wasn't available but was latter defined
@@ -2190,7 +2190,7 @@ process.nextTick = function (fun) {
     }
 };
 
-// v8 likes predictible objects
+// v8 likes predictable objects
 function Item(fun, array) {
     this.fun = fun;
     this.array = array;
@@ -4181,7 +4181,7 @@ AlgoliaSearchCore.prototype._jsonRequest = function(initialOpts) {
         return client._promise.reject(err);
       }
 
-      // When a timeout occured, retry by raising timeout
+      // When a timeout occurred, retry by raising timeout
       if (err instanceof errors.RequestTimeout) {
         return retryRequestWithHigherTimeout();
       }
@@ -4892,7 +4892,7 @@ IndexCore.prototype._search = function(params, url, callback, additionalUA) {
 * @param attrs (optional) if set, contains the array of attribute names to retrieve
 * @param callback (optional) the result callback called with two arguments
 *  error: null or Error('message')
-*  content: the object to retrieve or the error message if a failure occured
+*  content: the object to retrieve or the error message if a failure occurred
 */
 IndexCore.prototype.getObject = function(objectID, attrs, callback) {
   var indexObj = this;
@@ -6701,7 +6701,7 @@ function Typeahead(o) {
     if (_.isMsie() && ($menu[0] === active || $menu[0].contains(active))) {
       $e.preventDefault();
       // stop immediate in order to prevent Input#_onBlur from
-      // getting exectued
+      // getting executed
       $e.stopImmediatePropagation();
       _.defer(function() { $input.focus(); });
     }
@@ -10431,7 +10431,7 @@ while (++i < len) {
     break;
   }
 }
-// v8 likes predictible objects
+// v8 likes predictable objects
 function Item(fun, array) {
   this.fun = fun;
   this.array = array;
index d4a7fcde77d8cff5a259c6a9494bdb8d61fd5521..f453e411e885420e3eb506656280ff373366cf9d 100644 (file)
@@ -238,7 +238,7 @@ func (d *SourceFilesystem) Contains(filename string) bool {
        return false
 }
 
-// RealDirs gets a list of absolute paths to directorys starting from the given
+// RealDirs gets a list of absolute paths to directories starting from the given
 // path.
 func (d *SourceFilesystem) RealDirs(from string) []string {
        var dirnames []string
index 6e21d75aea60d23ae9c31250b60fceab3865fcf2..4c31eca4eca6177001004cae977a67021ba1bb5b 100644 (file)
@@ -275,8 +275,8 @@ type Page struct {
        targetPathDescriptorPrototype *targetPathDescriptor
 }
 
-func stackTrace(lenght int) string {
-       trace := make([]byte, lenght)
+func stackTrace(length int) string {
+       trace := make([]byte, length)
        runtime.Stack(trace, true)
        return string(trace)
 }
index 6f3e1de647da8f28c8604948de8b27baab28f44c..5eb09e10c0f4859f7dacbaf82895f231a22dee6b 100644 (file)
@@ -47,7 +47,7 @@ type Language struct {
        // If set per language, this tells Hugo that all content files without any
        // language indicator (e.g. my-page.en.md) is in this language.
        // This is usually a path relative to the working dir, but it can be an
-       // absolute directory referenece. It is what we get.
+       // absolute directory reference. It is what we get.
        ContentDir string
 
        Cfg config.Provider
index 6a100ddc459df29c74f38a6d4a1925a541093cce..4b6663d0ccdffc21bc7688adac97de123a350fed 100644 (file)
@@ -481,7 +481,7 @@ func contentReadSeekerCloser(r Resource) (ReadSeekCloser, error) {
                }
                return rc, nil
        default:
-               return nil, fmt.Errorf("cannot tranform content of Resource of type %T", r)
+               return nil, fmt.Errorf("cannot transform content of Resource of type %T", r)
 
        }
 }