summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-01-17 12:51:01 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-01-17 12:51:01 +0100
commitef6f101e75256c3bb88a6f1f3b5c1273bf8d7382 (patch)
treedfb035e3998be1faa66623c8a594cac0863208af
parent41bc6f702aa54200530efbf4267e5c823df3028d (diff)
Squashed 'docs/' changes from 2c0125b52..1214f6ffb
1214f6ffb Document cleanDestinationDir configuration setting 27ca65463 Clarify .Page.Param method (#1953) 3fa1792d2 Document the usage of `hardWrap` option for markdown rendering (#1951) 8b5afdfb4 Update theme 207e7f0a0 fix docs for getting remote font 1f7094b9e Correct typo f9d6445c4 Added missing `/` in URL generator (#1946) 3a22ee7d6 Remove translations b3b900f3f Update introduction.md aca440052 rm Forestry - facing end-of-life shortly (#1944) af0014e14 Update scss-sass.md 1c43bbbc9 Merge branch 'docs/goworkspace' d034175ca netlify: Hugo 0.109.0 d3a6a5c3f Merge branch 'tempv0.109.0' e033dbead docs: Regen docs helper JSON 452bf675c resource/page: Add Page.Ancestors 12edd7363 Add some docs for workspaces 8f0fcba6b Add HUGO_PUBLISHDIR to the Node environment 4e66d98ad Update theme 808aee6f6 config: Update to ga v4 1de2bc5a9 config: Update to ga v4 ddb5fd6b0 Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d' 54c54bf76 modules: Adjust watch logic vs workspace use definitions git-subtree-dir: docs git-subtree-split: 1214f6ffbf680e853746aaeb6cb097b28c0c556b
-rw-r--r--README.md9
-rw-r--r--_vendor/github.com/gohugoio/gohugoioTheme/data/sponsors.toml13
-rw-r--r--_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html162
-rw-r--r--_vendor/modules.txt2
-rw-r--r--config/_default/config.toml2
-rw-r--r--config/_default/languages.toml14
-rw-r--r--config/_default/menus/menus.zh.toml121
-rw-r--r--content/en/content-management/sections.md21
-rw-r--r--content/en/functions/images/index.md2
-rw-r--r--content/en/functions/param.md59
-rw-r--r--content/en/getting-started/configuration-markup.md3
-rw-r--r--content/en/getting-started/configuration.md8
-rw-r--r--content/en/getting-started/usage.md2
-rw-r--r--content/en/hugo-modules/configuration.md4
-rw-r--r--content/en/hugo-modules/use-modules.md30
-rwxr-xr-xcontent/en/hugo-pipes/introduction.md22
-rwxr-xr-xcontent/en/hugo-pipes/postprocess.md27
-rwxr-xr-xcontent/en/hugo-pipes/scss-sass.md3
-rw-r--r--content/en/templates/single-page-templates.md29
-rw-r--r--content/en/tools/frontends.md1
-rw-r--r--content/en/variables/page.md3
-rw-r--r--content/zh/_index.md49
-rw-r--r--content/zh/about/_index.md20
-rw-r--r--content/zh/content-management/_index.md20
-rw-r--r--content/zh/documentation.md21
-rw-r--r--content/zh/news/_index.md4
-rw-r--r--content/zh/templates/_index.md19
-rw-r--r--content/zh/templates/base.md131
-rw-r--r--content/zh/tools/_index.md25
-rw-r--r--content/zh/tools/search.md31
-rw-r--r--data/docs.json128
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--hugo.work4
-rw-r--r--netlify.toml8
35 files changed, 348 insertions, 655 deletions
diff --git a/README.md b/README.md
index 072714a02..730ad5fc8 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,15 @@ Spelling fixes are most welcomed, and if you want to contribute longer sections
* For example, try to find short snippets that teaches people about the concept. If the example is also useful as-is (copy and paste), then great. Don't list long and similar examples just so people can use them on their sites.
* Hugo has users from all over the world, so easy to understand and [simple English](https://simple.wikipedia.org/wiki/Basic_English) is good.
+
+## Edit the theme
+
+If you want to do docs-related theme changes, the simplest way is to have both `hugoDocs` and `gohugoioTheme` cloned as sibling directories, and then run:
+
+```
+HUGO_MODULE_WORKSPACE=hugo.work hugo server --ignoreVendorPaths "**"
+```
+
## Branches
* The `master` branch is where the site is automatically built from, and is the place to put changes relevant to the current Hugo version.
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/data/sponsors.toml b/_vendor/github.com/gohugoio/gohugoioTheme/data/sponsors.toml
index 1e46fc07c..adf26ecdb 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/data/sponsors.toml
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/data/sponsors.toml
@@ -5,18 +5,19 @@
utm_campaign = "hugosponsor"
[[banners]]
- name = "eSolia"
- link = "https://esolia.com/post/why-did-esolia-choose-hugo/"
- logo = "/images/sponsors/esolia-logo.svg"
- utm_campaign = "hugosponsor"
-
-[[banners]]
name = "ButterCMS"
link = "https://buttercms.com/hugo-cms/"
logo = "/images/sponsors/butter-light.svg"
utm_campaign = "sponsorship"
bgcolor = "#131A3E"
+[[banners]]
+ name = "Your Company?"
+ link = "https://bep.is/en/hugo-sponsor-2023-01/"
+ logo = "/images/sponsors/your-company.svg"
+ utm_campaign = "hugosponsor"
+ bgcolor = "#004887"
+
#hugohome
#hugofooter
#hugogithub
diff --git a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
index 04261a886..5767f078b 100644
--- a/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
+++ b/_vendor/github.com/gohugoio/gohugoioTheme/layouts/_default/baseof.html
@@ -1,75 +1,119 @@
<!DOCTYPE html>
-<html class="no-js" lang="{{ with $.Site.LanguageCode }}{{ . }}{{ else }}en-us{{ end }}">
+<html
+ class="no-js"
+ lang="{{ with $.Site.LanguageCode }}
+ {{ . }}
+ {{ else }}
+ en-us
+ {{ end }}
+ ">
+ <head>
+ <meta charset="utf-8" />
+ {{/* https://www.zachleat.com/web/preload/ */}}
+ <link
+ rel="preload"
+ href="{{ "fonts/muli-latin-200.woff2" | absURL }}"
+ as="font"
+ type="font/woff2"
+ crossorigin />
+ <link
+ rel="preload"
+ href="{{ "fonts/muli-latin-400.woff2" | absURL }}"
+ as="font"
+ type="font/woff2"
+ crossorigin />
+ <link
+ rel="preload"
+ href="{{ "fonts/muli-latin-800.woff2" | absURL }}"
+ as="font"
+ type="font/woff2"
+ crossorigin />
-<head>
- <meta charset="utf-8">
- {{/* https://www.zachleat.com/web/preload/ */}}
- <link rel="preload" href="{{ "fonts/muli-latin-200.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
- <link rel="preload" href="{{ "fonts/muli-latin-400.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
- <link rel="preload" href="{{ "fonts/muli-latin-800.woff2" | absURL }}" as="font" type="font/woff2" crossorigin>
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ {{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
+ <title>
+ {{ block "title" . }}
+ {{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}
+ {{ end }}
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- {{/* NOTE: the Site's title, and if there is a page title, that is set too */}}
- <title>{{ block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title>
+ </title>
- <meta name="viewport" content="width=device-width,minimum-scale=1">
- {{ hugo.Generator }}
+ <meta name="viewport" content="width=device-width,minimum-scale=1" />
+ {{ hugo.Generator }}
- {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
- <meta name="robots" content="index, follow">
- {{ else }}
- <meta name="robots" content="noindex, nofollow">
- {{ end }}
+ {{ if hugo.IsProduction }}
+ <meta name="robots" content="index, follow" />
+ {{ else }}
+ <meta name="robots" content="noindex, nofollow" />
+ {{ end }}
- {{ range .AlternativeOutputFormats -}}
- <link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}">
- {{ end -}}
+ {{ range .AlternativeOutputFormats -}}
+ <link
+ rel="{{ .Rel }}"
+ type="{{ .MediaType.Type }}"
+ href="{{ .Permalink | safeURL }}" />
+ {{ end -}}
- {{ $isDev := eq hugo.Environment "development" }}
- {{ $stylesheet := resources.Get "output/css/app.css" }}
- {{ if not $isDev }}
- {{ $stylesheet = $stylesheet | minify | fingerprint }}
- {{ end }}
- {{ with $stylesheet }}
- {{ if $isDev }}
- <link rel="stylesheet" href="{{ .RelPermalink }}" crossorigin="anonymous">
- {{ else }}
- <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
- {{ end }}
- {{ $.Scratch.Set "stylesheet" . }}
- {{end}}
+ {{ $isDev := eq hugo.Environment "development" }}
+ {{ $stylesheet := resources.Get "output/css/app.css" }}
+ {{ if not $isDev }}
+ {{ $stylesheet = $stylesheet | minify | fingerprint }}
+ {{ end }}
+ {{ with $stylesheet }}
+ {{ if $isDev }}
+ <link
+ rel="stylesheet"
+ href="{{ .RelPermalink }}"
+ crossorigin="anonymous" />
+ {{ else }}
+ <link
+ rel="stylesheet"
+ href="{{ .RelPermalink }}"
+ integrity="{{ .Data.Integrity }}"
+ crossorigin="anonymous" />
+ {{ end }}
+ {{ $.Scratch.Set "stylesheet" . }}
+ {{ end }}
- <meta name="description"
- content="{{ with .Description }}{{ . }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}">
- {{ block "scripts" . }}
- {{- partial "site-scripts.html" . -}}
- {{ end }}
- {{ partial "site-manifest.html" . }}
- {{- partial "head-additions.html" . -}}
- {{- partial "opengraph/opengraph.html" . -}}
- {{- template "_internal/schema.html" . -}}
- {{- partial "opengraph/twitter_cards.html" . -}}
+ <meta
+ name="description"
+ content="{{ with .Description }}
+ {{ . }}
+ {{ else }}
+ {{ with .Site.Params.description }}{{ . }}{{ end }}
+ {{ end }}
+ " />
- {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
- {{ partial "gtag" . }}
- {{ end }}
+ {{ block "scripts" . }}
+ {{- partial "site-scripts.html" . -}}
+ {{ end }}
+ {{ partial "site-manifest.html" . }}
+ {{- partial "head-additions.html" . -}}
+ {{- partial "opengraph/opengraph.html" . -}}
+ {{- template "_internal/schema.html" . -}}
+ {{- partial "opengraph/twitter_cards.html" . -}}
+
+ {{ if hugo.IsProduction }}
+ {{ partial "gtag" . }}
+ {{ end }}
-</head>
+ </head>
-<body class="ma0 sans-serif bg-primary-color-light{{ with getenv "HUGO_ENV" }} {{ . }}{{ end }}">
- {{ partial "hooks/after-body-start" . }}
- {{ block "nav" . }}{{ partial "site-nav.html" . }}{{ end }}
- {{ block "header" . }}{{ end }}
- <main role="main" class="content-with-sidebar min-vh-100 pb7 pb0-ns">
- {{ block "main" . }}{{ end }}
- </main>
+ <body
+ class="ma0 sans-serif bg-primary-color-light{{ with getenv "HUGO_ENV" }}
+ {{ . }}
+ {{ end }}">
+ {{ partial "hooks/after-body-start" . }}
+ {{ block "nav" . }}{{ partial "site-nav.html" . }}{{ end }}
+ {{ block "header" . }}{{ end }}
+ <main role="main" class="content-with-sidebar min-vh-100 pb7 pb0-ns">
+ {{ block "main" . }}{{ end }}
+ </main>
- {{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
-
- {{ partial "hooks/before-body-end" . }}
-
+ {{ block "footer" . }}{{ partialCached "site-footer.html" . }}{{ end }}
-</body>
+ {{ partial "hooks/before-body-end" . }}
+ </body>
</html>
diff --git a/_vendor/modules.txt b/_vendor/modules.txt
index 787da8ac2..21e85264c 100644
--- a/_vendor/modules.txt
+++ b/_vendor/modules.txt
@@ -1 +1 @@
-# github.com/gohugoio/gohugoioTheme v0.0.0-20221217122332-1c1752ad8f14
+# github.com/gohugoio/gohugoioTheme v0.0.0-20230109120406-12694c4a9456
diff --git a/config/_default/config.toml b/config/_default/config.toml
index f4965dff1..731233310 100644
--- a/config/_default/config.toml
+++ b/config/_default/config.toml
@@ -1,7 +1,7 @@
baseURL = "https://gohugo.io/"
defaultContentLanguage = "en"
enableEmoji = true
-googleAnalytics = "UA-7131036-4"
+googleAnalytics = "G-MBZGKNMDWC"
ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
languageCode = "en-us"
paginate = 100
diff --git a/config/_default/languages.toml b/config/_default/languages.toml
index c9914d84d..cfddb5398 100644
--- a/config/_default/languages.toml
+++ b/config/_default/languages.toml
@@ -1,10 +1,4 @@
-
- [en]
- contentDir = "content/en"
- languageName = "English"
- weight = 1
-
- [zh]
- contentDir = "content/zh"
- languageName = "中文"
- weight = 2
+[en]
+contentDir = "content/en"
+languageName = "English"
+weight = 1
diff --git a/config/_default/menus/menus.zh.toml b/config/_default/menus/menus.zh.toml
deleted file mode 100644
index 2f68be67b..000000000
--- a/config/_default/menus/menus.zh.toml
+++ /dev/null
@@ -1,121 +0,0 @@
-
-# Chinese menus
-
-[[docs]]
- name = "关于 Hugo"
- weight = 1
- identifier = "about"
- url = "/zh/about/"
-
-[[docs]]
- name = "入门"
- weight = 5
- identifier = "getting-started"
- url = "/zh/getting-started/"
-
-[[docs]]
- name = "主题"
- weight = 15
- identifier = "themes"
- post = "break"
- url = "/zh/themes/"
-
-# Core languages.zh.menus
-
-[[docs]]
- name = "内容管理"
- weight = 20
- identifier = "content-management"
- post = "expanded"
- url = "/zh/content-management/"
-
-[[docs]]
- name = "模板"
- weight = 25
- identifier = "templates"
- url = "/zh/templates/"
-
-[[docs]]
- name = "函数"
- weight = 30
- identifier = "functions"
- url = "/zh/functions/"
-
-[[docs]]
- name = "变量"
- weight = 35
- identifier = "variables"
- url = "/zh/variables/"
-
-[[docs]]
- name = "CLI"
- weight = 40
- post = "break"
- identifier = "commands"
- url = "/commands/"
-
-# LOW LEVEL ITEMS
-[[docs]]
- name = "故障排除"
- weight = 60
- identifier = "troubleshooting"
- url = "/zh/troubleshooting/"
-
-[[docs]]
- name = "工具"
- weight = 70
- identifier = "tools"
- url = "/zh/tools/"
-
-[[docs]]
- name = "托管与部署"
- weight = 80
- identifier = "hosting-and-deployment"
- url = "/zh/hosting-and-deployment/"
-
-[[docs]]
- name = "贡献"
- weight = 100
- post = "break"
- identifier = "contribute"
- url = "/zh/contribute/"
-
-[[global]]
- name = "新闻"
- weight = 1
- identifier = "news"
- url = "/zh/news/"
-
-[[global]]
- name = "文档"
- weight = 5
- identifier = "docs"
- url = "/zh/documentation/"
-
-[[global]]
- name = "主题"
- weight = 10
- identifier = "themes"
- url = "https://themes.gohugo.io/"
-
-[[global]]
- name = "作品展示"
- weight = 20
- identifier = "showcase"
- url = "/zh/showcase/"
-
-# Anything with a weight > 100 gets an external icon
-[[global]]
- name = "社区"
- weight = 150
- icon = true
- identifier = "community"
- post = "external"
- url = "https://discourse.gohugo.io/"
-
-[[global]]
- name = "GitHub"
- weight = 200
- identifier = "github"
- post = "external"
- url = "https://github.com/gohugoio/hugo"
diff --git a/content/en/content-management/sections.md b/content/en/content-management/sections.md
index 5ff884610..b68a5bdb9 100644
--- a/content/en/content-management/sections.md
+++ b/content/en/content-management/sections.md
@@ -63,19 +63,16 @@ If you need a specific template for a sub-section, you need to adjust either the
With the available [section variables and methods](#section-page-variables-and-methods) you can build powerful navigation. One common example would be a partial to show Breadcrumb navigation:
{{< code file="layouts/partials/breadcrumb.html" download="breadcrumb.html" >}}
-<ol class="nav navbar-nav">
- {{ template "breadcrumbnav" (dict "p1" . "p2" .) }}
-</ol>
-{{ define "breadcrumbnav" }}
-{{ if .p1.Parent }}
-{{ template "breadcrumbnav" (dict "p1" .p1.Parent "p2" .p2 ) }}
-{{ else if not .p1.IsHome }}
-{{ template "breadcrumbnav" (dict "p1" .p1.Site.Home "p2" .p2 ) }}
-{{ end }}
-<li{{ if eq .p1 .p2 }} class="active" aria-current="page" {{ end }}>
- <a href="{{ .p1.Permalink }}">{{ .p1.Title }}</a>
+<ol class="nav navbar-nav">
+<ul>
+{{- range .Ancestors.Reverse }}
+<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
+{{- end }}
+<li class="active" aria-current="page">
+<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
-{{ end }}
+</ul>
+</ol>
{{< /code >}}
## Section Page Variables and Methods
diff --git a/content/en/functions/images/index.md b/content/en/functions/images/index.md
index 0cf45b6ee..e7fc50f7e 100644
--- a/content/en/functions/images/index.md
+++ b/content/en/functions/images/index.md
@@ -60,7 +60,7 @@ You can load a custom font if needed. Load the font as a Hugo `Resource` and set
```go-html-template
-{{ $font := resources.Get "https://github.com/google/fonts/raw/main/apache/roboto/static/Roboto-Black.ttf" }}
+{{ $font := resources.GetRemote "https://github.com/google/fonts/raw/main/apache/roboto/static/Roboto-Black.ttf" }}
{{ $img := resources.Get "/images/background.png"}}
{{ $img = $img.Filter (images.Text "Hugo rocks!" (dict
"font" $font
diff --git a/content/en/functions/param.md b/content/en/functions/param.md
index 5387647d2..4f1764814 100644
--- a/content/en/functions/param.md
+++ b/content/en/functions/param.md
@@ -1,40 +1,47 @@
---
title: .Param
-description: Calls page or site variables into your template.
-date: 2017-02-01
-publishdate: 2017-02-01
-lastmod: 2017-04-30
-keywords: ["front matter"]
+description: Returns a page parameter, falling back to a site parameter if present.
+signature: ['.Param KEY']
categories: [functions]
+keywords: ['front matter', 'params']
menu:
docs:
- parent: "functions"
-toc:
-signature: [".Param KEY"]
-workson: []
-hugoversion:
-relatedfuncs: [default]
-deprecated: false
-draft: false
+ parent: 'functions'
aliases: []
---
-In Hugo, you can declare [site-wide params][sitevars] (i.e. in your [configuration]), as well as params for [individual pages][pagevars].
+The `.Param` method on `.Page` looks for the given `KEY` in page parameters, and returns the corresponding value. If it cannot find the `KEY` in page parameters, it looks for the `KEY` in site parameters. If it cannot find the `KEY` in either location, the `.Param` method returns `nil`.
-A common use case is to have a general value for the site and a more specific value for some of the pages (e.g., an image).
+Site and theme developers commonly set parameters at the site level, allowing content authors to override those parameters at the page level.
-You can use the `.Param` method to call these values into your template. The following will first look for an `image` param in a specific content's [front matter]. If not found, Hugo will look for an `image` param in your site's configuration:
+For example, to show a table of contents on every page, but allow authors to hide the table of contents as needed:
-```
-$.Param "image"
-```
+**Configuration**
-{{% note %}}
-The `Param` method may not consider empty strings in a content's front matter as "not found." If you are setting preconfigured front matter fields to empty strings using Hugo's archetypes, it may be best to use the [`default` function](/functions/default/) instead of `Param`. See the [related issue on GitHub](https://github.com/gohugoio/hugo/issues/3366).
-{{% /note %}}
+{{< code-toggle file="config" copy=false >}}
+[params]
+display_toc = true
+{{< /code-toggle >}}
+**Content**
-[configuration]: /getting-started/configuration/
-[front matter]: /content-management/front-matter/
-[pagevars]: /variables/page/
-[sitevars]: /variables/site/
+{{< code-toggle file="content/about.md" fm=true copy=false >}}
+title = 'About'
+date = 2023-01-01
+draft = false
+display_toc = false
+{{< /code-toggle >}}
+
+**Template**
+
+{{< code file="layouts/_default/single.html" copy="false" >}}
+{{ if .Param "display_toc" }}
+ {{ .TableOfContents }}
+{{ end }}
+{{< /code >}}
+
+The `.Param` method returns the value associated with the given `KEY`, regardless of whether the value is truthy or falsy. If you need to ignore falsy values, use this construct instead:
+
+{{< code file="layouts/_default/single.html" copy="false" >}}
+{{ or .Params.foo site.Params.foo }}
+{{< /code >}}
diff --git a/content/en/getting-started/configuration-markup.md b/content/en/getting-started/configuration-markup.md
index 4694bd439..b55bd79c4 100644
--- a/content/en/getting-started/configuration-markup.md
+++ b/content/en/getting-started/configuration-markup.md
@@ -32,6 +32,9 @@ For details on the extensions, refer to [this section](https://github.com/yuin/g
Some settings explained:
+hardWrap
+: By default, Goldmark ignores newlines within a paragraph. Set to `true` to render newlines as `<br>` elements.
+
unsafe
: By default, Goldmark does not render raw HTMLs and potentially dangerous links. If you have lots of inline HTML and/or JavaScript, you may need to turn this on.
diff --git a/content/en/getting-started/configuration.md b/content/en/getting-started/configuration.md
index 39f27453f..3c9b42678 100644
--- a/content/en/getting-started/configuration.md
+++ b/content/en/getting-started/configuration.md
@@ -173,6 +173,12 @@ Pass down default configuration values (front matter) to pages in the content tr
Enable to turn relative URLs into absolute.
+### cleanDestinationDir
+
+**Default value:** false
+
+When building, removes files from destination not found in static directories.
+
### contentDir
**Default value:** "content"
@@ -231,7 +237,7 @@ Disable automatic live reloading of browser window.
**Default value:** false
-: Do not convert the url/path to lowercase.
+Do not convert the url/path to lowercase.
### enableEmoji
diff --git a/content/en/getting-started/usage.md b/content/en/getting-started/usage.md
index edf3e82a5..15cf46cbf 100644
--- a/content/en/getting-started/usage.md
+++ b/content/en/getting-started/usage.md
@@ -120,7 +120,7 @@ hugo server --navigateToChanged
As noted above, Hugo does not clear the public directory before building your site. Manually clear the contents of the public directory before each build to remove draft, expired, and future content.
{{% /note %}}
-When are ready to deploy your site, run:
+When you are ready to deploy your site, run:
```bash