mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-09 21:08:04 -04:00
Typos and whitespacing issues fixed
This commit is contained in:
parent
b20dba1255
commit
1d99bb182a
@ -18,8 +18,7 @@ deprecated: false
|
|||||||
aliases: []
|
aliases: []
|
||||||
---
|
---
|
||||||
|
|
||||||
|
By default all matches will be included. The number of matches can be limited with an optional third parameter.
|
||||||
By default all matches will be included. The number of matches can be limitted with an optional third parameter.
|
|
||||||
|
|
||||||
The example below returns a list of all second level headers (`<h2>`) in the content:
|
The example below returns a list of all second level headers (`<h2>`) in the content:
|
||||||
|
|
||||||
@ -40,7 +39,6 @@ Hugo uses Go's [Regular Expression package](https://golang.org/pkg/regexp/), whi
|
|||||||
If you are just learning RegEx, or at least Go's flavor, you can practice pattern matching in the browser at <https://regex101.com/>.
|
If you are just learning RegEx, or at least Go's flavor, you can practice pattern matching in the browser at <https://regex101.com/>.
|
||||||
{{% /note %}}
|
{{% /note %}}
|
||||||
|
|
||||||
|
|
||||||
[partials]: /templates/partials/
|
[partials]: /templates/partials/
|
||||||
[`plainify`]: /functions/plainify/
|
[`plainify`]: /functions/plainify/
|
||||||
[toc]: /content-management/toc/
|
[toc]: /content-management/toc/
|
||||||
|
@ -20,7 +20,7 @@ aliases: []
|
|||||||
|
|
||||||
Takes a string containing the name of the variable as input. Returns
|
Takes a string containing the name of the variable as input. Returns
|
||||||
an empty string if the variable is not set, otherwise returns the
|
an empty string if the variable is not set, otherwise returns the
|
||||||
value of the variable.
|
value of the variable.
|
||||||
|
|
||||||
```
|
```
|
||||||
{{ getenv "HOME" }}
|
{{ getenv "HOME" }}
|
||||||
|
@ -14,7 +14,7 @@ keywords: [strings]
|
|||||||
signature: ["plainify INPUT"]
|
signature: ["plainify INPUT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
relatedfuncs: [jsonify,]
|
relatedfuncs: [jsonify]
|
||||||
deprecated: false
|
deprecated: false
|
||||||
aliases: []
|
aliases: []
|
||||||
---
|
---
|
||||||
@ -25,7 +25,4 @@ aliases: []
|
|||||||
|
|
||||||
See also the `.PlainWords`, `.Plain`, and `.RawContent` [page variables][pagevars].
|
See also the `.PlainWords`, `.Plain`, and `.RawContent` [page variables][pagevars].
|
||||||
|
|
||||||
|
|
||||||
[pagevars]: /variables/page/
|
[pagevars]: /variables/page/
|
||||||
|
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ toc: false
|
|||||||
deprecated: false
|
deprecated: false
|
||||||
---
|
---
|
||||||
|
|
||||||
A template file is any file living below the `layouts` directories of either the project or any of its theme components incudling partials and shortcodes.
|
A template file is any file living below the `layouts` directories of either the project or any of its theme components including partials and shortcodes.
|
||||||
|
|
||||||
The function is particularly handy with dynamic path. The following example ensures the build will not break on a `.Type` missing its dedicated `header` partial.
|
The function is particularly handy with dynamic path. The following example ensures the build will not break on a `.Type` missing its dedicated `header` partial.
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ description: A list of tutorials and books on Hugo.
|
|||||||
date: 2019-10-20
|
date: 2019-10-20
|
||||||
publishdate: 2019-10-20
|
publishdate: 2019-10-20
|
||||||
lastmod: 2019-10-20
|
lastmod: 2019-10-20
|
||||||
keywords: [books,tutorials,learning,usage]
|
keywords: [books, tutorials, learning, usage]
|
||||||
menu:
|
menu:
|
||||||
docs:
|
docs:
|
||||||
parent: "getting-started"
|
parent: "getting-started"
|
||||||
@ -17,7 +17,9 @@ toc: false
|
|||||||
---
|
---
|
||||||
|
|
||||||
## Books
|
## Books
|
||||||
|
|
||||||
### Hugo In Action
|
### Hugo In Action
|
||||||
|
|
||||||
[](https://www.manning.com/books/hugo-in-action)
|
[](https://www.manning.com/books/hugo-in-action)
|
||||||
|
|
||||||
Hugo in Action is a step-by-step guide to using Hugo to create static websites. Working with a complete example website and source code samples, you’ll learn how to build and host a low-maintenance, high-performance site that will wow your users and stay stable without relying on a third-party server.
|
Hugo in Action is a step-by-step guide to using Hugo to create static websites. Working with a complete example website and source code samples, you’ll learn how to build and host a low-maintenance, high-performance site that will wow your users and stay stable without relying on a third-party server.
|
||||||
@ -25,5 +27,7 @@ Hugo in Action is a step-by-step guide to using Hugo to create static websites.
|
|||||||
[Hugo In Action Home Page](https://www.manning.com/books/hugo-in-action)
|
[Hugo In Action Home Page](https://www.manning.com/books/hugo-in-action)
|
||||||
|
|
||||||
## Video tutorials
|
## Video tutorials
|
||||||
|
|
||||||
### Video Playlist by Mike Dane
|
### Video Playlist by Mike Dane
|
||||||
Mike Dane expains the various features of Hugo via dedicated tutorials on [YouTube](https://www.youtube.com/watch?list=PLLAZ4kZ9dFpOnyRlyS-liKL5ReHDcj4G3&v=qtIqKaDlqXo).
|
|
||||||
|
Mike Dane explains the various features of Hugo via dedicated tutorials on [YouTube](https://www.youtube.com/watch?list=PLLAZ4kZ9dFpOnyRlyS-liKL5ReHDcj4G3&v=qtIqKaDlqXo).
|
||||||
|
@ -15,12 +15,10 @@ sections_weight: 60
|
|||||||
draft: false
|
draft: false
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
Asset files of the same MIME type can be bundled into one resource using `resources.Concat` which takes two arguments, a target path and a slice of resource objects.
|
Asset files of the same MIME type can be bundled into one resource using `resources.Concat` which takes two arguments, a target path and a slice of resource objects.
|
||||||
|
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
{{ $plugins := resources.Get "js/plugins.js" }}
|
{{ $plugins := resources.Get "js/plugins.js" }}
|
||||||
{{ $global := resources.Get "js/global.js" }}
|
{{ $global := resources.Get "js/global.js" }}
|
||||||
{{ $js := slice $plugins $global | resources.Concat "js/bundle.js" }}
|
{{ $js := slice $plugins $global | resources.Concat "js/bundle.js" }}
|
||||||
```
|
```
|
||||||
|
@ -177,7 +177,7 @@ The following `footer.html` partial template is used for [spf13.com](https://spf
|
|||||||
<p>
|
<p>
|
||||||
© 2013-14 Steve Francia.
|
© 2013-14 Steve Francia.
|
||||||
<a href="https://creativecommons.org/licenses/by/3.0/" title="Creative Commons Attribution">Some rights reserved</a>;
|
<a href="https://creativecommons.org/licenses/by/3.0/" title="Creative Commons Attribution">Some rights reserved</a>;
|
||||||
please attribute properly and link back. Hosted by <a href="http://servergrove.com">ServerGrove</a>.
|
please attribute properly and link back. Hosted by <a href="https://servergrove.com">ServerGrove</a>.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user