mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 09:14:45 -04:00
Remove unnecessary duplicated words
This commit is contained in:
parent
612693b4fa
commit
47aefdbda3
@ -161,7 +161,7 @@ Assuming a `baseURL` of `example.com`, the contents of the auto-generated alias
|
|||||||
</html>
|
</html>
|
||||||
```
|
```
|
||||||
|
|
||||||
The `http-equiv="refresh"` line is what performs the redirect, in 0 seconds in this case. If an end user of your website goes to `https://example.com/posts/my-old-url`, they will now be automatically redirected to the newer, correct URL. The addition of `<meta name="robots" content="noindex">` lets search engine bots know they they should not crawl and index your new alias page.
|
The `http-equiv="refresh"` line is what performs the redirect, in 0 seconds in this case. If an end user of your website goes to `https://example.com/posts/my-old-url`, they will now be automatically redirected to the newer, correct URL. The addition of `<meta name="robots" content="noindex">` lets search engine bots know that they should not crawl and index your new alias page.
|
||||||
|
|
||||||
### Customize
|
### Customize
|
||||||
You may customize this alias page by creating an `alias.html` template in the
|
You may customize this alias page by creating an `alias.html` template in the
|
||||||
|
@ -128,7 +128,7 @@ git push -u origin master
|
|||||||
|
|
||||||
## Set Up Wercker
|
## Set Up Wercker
|
||||||
|
|
||||||
To sign up for a free Wercker account, go to <https://wercker.com> and click the the **Sign Up** button on the top right of the home screen.
|
To sign up for a free Wercker account, go to <https://wercker.com> and click the **Sign Up** button on the top right of the home screen.
|
||||||
|
|
||||||
![][3]
|
![][3]
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ draft: false
|
|||||||
|
|
||||||
## Create a KeyCDN Pull Zone
|
## Create a KeyCDN Pull Zone
|
||||||
|
|
||||||
The first step will be to login to your KeyCDN account and create a new zone. Name this whatever you like and select the [Pull Zone](https://www.keycdn.com/support/create-a-pull-zone/) option. As for the the origin URL, your site will be running on [GitLab Pages](https://docs.gitlab.com/ee/user/project/pages/getting_started_part_one.html) with a URL of `https://youruser.gitlab.io/reponame/`. Use this as the Origin URL.
|
The first step will be to login to your KeyCDN account and create a new zone. Name this whatever you like and select the [Pull Zone](https://www.keycdn.com/support/create-a-pull-zone/) option. As for the origin URL, your site will be running on [GitLab Pages](https://docs.gitlab.com/ee/user/project/pages/getting_started_part_one.html) with a URL of `https://youruser.gitlab.io/reponame/`. Use this as the Origin URL.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ times decreased anywhere from 10% to 99%.
|
|||||||
* Add config layout and content directory CLI options {{<gh 1698>}}
|
* Add config layout and content directory CLI options {{<gh 1698>}}
|
||||||
* Add boolean value comparison to `where` template function {{<gh
|
* Add boolean value comparison to `where` template function {{<gh
|
||||||
0xf3c74c9db484c8961e70cb3458f9e41e7832fa12>}}
|
0xf3c74c9db484c8961e70cb3458f9e41e7832fa12>}}
|
||||||
* Do not write to to cache when `ignoreCache` is set {{<gh 2067>}}
|
* Do not write to cache when `ignoreCache` is set {{<gh 2067>}}
|
||||||
* Add option to disable rendering of 404 page {{<gh 2037>}}
|
* Add option to disable rendering of 404 page {{<gh 2037>}}
|
||||||
* Mercurial is no longer needed to build Hugo {{<gh 2062 >}}
|
* Mercurial is no longer needed to build Hugo {{<gh 2062 >}}
|
||||||
* Do not create `robots.txt` by default {{<gh 2049>}}
|
* Do not create `robots.txt` by default {{<gh 2049>}}
|
||||||
|
@ -143,7 +143,7 @@ This above will output the following HTML:
|
|||||||
|
|
||||||
You do *not* have to create an `_index.md` file for every list page (i.e. section, taxonomy, taxonomy terms, etc) or the homepage. If Hugo does not find an `_index.md` within the respective content section when rendering a list template, the page will be created but with no `{{.Content}}` and only the default values for `.Title` etc.
|
You do *not* have to create an `_index.md` file for every list page (i.e. section, taxonomy, taxonomy terms, etc) or the homepage. If Hugo does not find an `_index.md` within the respective content section when rendering a list template, the page will be created but with no `{{.Content}}` and only the default values for `.Title` etc.
|
||||||
|
|
||||||
Using this same `layouts/_default/list.html` template and applying it to the the `quotes` section above will render the following output. Note that `quotes` does not have an `_index.md` file to pull from:
|
Using this same `layouts/_default/list.html` template and applying it to the `quotes` section above will render the following output. Note that `quotes` does not have an `_index.md` file to pull from:
|
||||||
|
|
||||||
{{< code file="example.com/quote/index.html" copy="false" >}}
|
{{< code file="example.com/quote/index.html" copy="false" >}}
|
||||||
<!--baseof-->
|
<!--baseof-->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user