109 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen
90ffe2b50f Merge commit 'c9403cbceaaeff53ff4833561f4eefe1dc1a405e' 2020-05-18 15:25:26 +02:00
Mikeee
109a0fcca5 add len function to navigation side menu 2020-05-17 15:53:17 +02:00
Joe Mooring
bf3dd08378 Add math.Pow
Closes #7266
2020-05-14 10:00:31 +02:00
Alexander01998
959b9dc3a7 Fix typo on "where" page
The phrase "Instead of set field on all pages, you can set field on required pages only." seems to be grammatically incorrect.

I have changed it to: "Instead of setting a field on all pages, you can set that field on required pages only."
2020-05-07 08:50:56 +02:00
Christian Oliff
b760aceb1e HTTPS external links in docs 2020-04-22 17:57:26 +02:00
Dave Redfern
b3ffd1ad32
Mentioning a range is equivalent to foreach (#1086)
* Mentioning a range is equivelant to foreach

I’m new to Go and really struggled to find this. I added this sentence so it would be searchable for other people to find. At the moment, searching for a foreach doesn’t return range and IMHO it should.

* Fixed a spelling error for equivalent
2020-04-16 14:55:34 +02:00
Cameron Moore
0c396911f1 Update jsonify function docs
Update jsonify to match the changes in v0.69.0.

Related: https://github.com/gohugoio/hugo/pull/7082
2020-04-14 09:13:54 +02:00
Alexander01998
efc5cb2270
Remove broken link on "where" page (#1058)
The link "[wherefunction]" was not defined, so the square brackets where visible on the rendered page.

It seems that this link would have just gone back to the top of the page, so I removed it instead of fixing it.
2020-03-27 17:36:13 +09:00
Joshua Wong
0013daa346 Add hugo.IsProduction function
Fixes #6873
2020-02-25 17:58:07 +01:00
Chris Dennis
34c419ef32 tpl: Add math.Sqrt
Fixes #6941
2020-02-24 23:45:04 +01:00
Bjørn Erik Pedersen
92bd0b1f5c
Update errorf.md 2020-02-07 01:15:37 +01:00
Karl
293c9496a8 Document the hugo function
This basically copies the params/variables .Hugo over, which is fine because the interface remained the same
2020-02-02 09:51:00 +01:00
Victor Massé
9a95876c79 Remove note
I might be mistaken but it seems we can remove the note since the referenced issue is closed and .Scratch is not used in the examples.
2020-01-28 11:56:30 +01:00
Patrick Kollitsch
ee14087cd9 Remove typo from RenderString.md
Remove :REND from sample code
2020-01-22 17:30:20 +01:00
David Fernandes
e099c1ad63 changed ".Title" to ".URL" (#972)
From what I've understood in this Documentation it should be referencing the .URL and not the .Title
2020-01-01 23:36:38 +07:00
Sanmay Joshi
9c28c422ee Correct hyperlink for 'markdownify' function
### Changes
added a slash '/', so that link is referenced from root of the domain and not current page

### Previously
```
**Note** that this method is more powerful than the similar [markdownify](functions/markdownify/) function as it also supports [Render Hooks](/getting-started/configuration-markup/#markdown-render-hooks) and it has options to render other markup formats.
```
### Now
```
**Note** that this method is more powerful than the similar [markdownify](/functions/markdownify/) function as it also supports [Render Hooks](/getting-started/configuration-markup/#markdown-render-hooks) and it has options to render other markup formats.
```
2019-12-31 09:59:49 +01:00
Florian Gerlinghoff
8b9c1d4f21 Added remarks about additional parameters in ref/relref (#995)
* Added remark about additional params to ref.md

* Added remark about additional params to relref.md

* Fixed typo in ref.md
2019-12-28 21:39:08 +01:00
Bjørn Erik Pedersen
7a85c789b9
Update RenderString.md 2019-12-24 16:55:46 +01:00
Regis Philibert
43e9222a2a Revert "Add shortcodes to note comparing with markdownify"
This reverts commit 2bd5bc2d71d42d72608566d4d3299558c4f8f803.
2019-12-23 20:31:32 +01:00
Regis Philibert
2bd5bc2d71
Add shortcodes to note comparing with markdownify 2019-12-23 19:53:40 +01:00
Bjørn Erik Pedersen
9db1a08d18 Merge commit '8a4005cf2b0ef34265ff8051a6b76226685fc226' 2019-12-22 22:51:45 +01:00
Bjørn Erik Pedersen
5088c54df0 tpl: Do not return any value in errorf
Fixes #6653
2019-12-21 10:26:14 +01:00
Bjørn Erik Pedersen
98c8c8638e tpl: Add a warnf template func
Fixes #6628
2019-12-21 10:23:00 +01:00
Frank Taillandier
0dee16d11c Link to Régis Full Partials series 2019-12-20 14:02:19 +01:00
Bjørn Erik Pedersen
138782808d
Update partialCached.md 2019-12-20 12:36:03 +01:00
Bjørn Erik Pedersen
16801db3b5 Add render template hooks for links and images
This commit also

* revises the change detection for templates used by content files in server mode.
* Adds a Page.RenderString method

Fixes #6545
Fixes #4663
Closes #6043
2019-12-18 11:44:40 +01:00
Bjørn Erik Pedersen
ded74f0982 Add Goldmark as the new default markdown handler
This commit adds the fast and CommonMark compliant Goldmark as the new default markdown handler in Hugo.

If you want to continue using BlackFriday as the default for md/markdown extensions, you can use this configuration:

```toml
[markup]
defaultMarkdownHandler="blackfriday"
```

Fixes #5963
Fixes #1778
Fixes #6355
2019-11-23 14:12:24 +01:00
Bjørn Erik Pedersen
8cc2c72ca6 tpl/collections: Allow dict to create nested structures
Fixes #6497
2019-11-11 21:55:16 +01:00
Bjørn Erik Pedersen
0403550130
Rework the index doc
Closes https://github.com/gohugoio/hugo/pull/3974
Closes https://github.com/gohugoio/hugo/issues/3289
2019-11-04 09:51:13 +01:00
Salim B
de36e6f8f0 Clarify that print takes 1+ arguments
This was really not clear from the doc before.
2019-10-29 17:36:51 +01:00
Tom Doe
15a2eaab5e Update isset.md (#900)
Added a sentence to the warning in regards to accessing front matter keys from within shortcodes.
2019-10-05 00:32:18 +07:00
Bjørn Erik Pedersen
d087cf3068
Update image docs for 0.58 2019-09-04 17:33:09 +02:00
XhmikosR
2878090b5c Update transform.Unmarshal.md 2019-08-16 10:00:35 -04:00
Dan Siddoway
fa5533c69b Add strings.HasSuffix documentation
I tracked this down *via* <https://discourse.gohugo.io/t/solved-add-hassuffix-function/13160>. It came in handy for me; may it do so for others as well.
2019-08-16 09:59:35 +02:00
Regis Philibert
68a956272f
Update merge.md 2019-08-08 18:14:49 -04:00
Regis Philibert
fd0f04f69e Sorry fix on the merge doc. 2019-08-08 15:12:52 -04:00
Regis Philibert
b3f231dd3b Fix metadata 2019-08-08 15:08:12 -04:00
Regis Philibert
46883c979c Add merge function doc. 2019-08-08 15:07:12 -04:00
Christian Oliff
d86e10b1e7 HTTPS links in Docs
I didn't touch old release notes and some code examples.
All links were tested and in some cases updated to prevent redirects where URLs have changed.
2019-07-30 10:31:12 -04:00
Bjørn Erik Pedersen
64c1cc3dba
Update title.md 2019-07-10 15:27:41 +02:00
Hanzei
88f559e816 Fix spelling mistakes 2019-06-14 14:58:38 +02:00
Annie-Claude Morin
08c9f8fc89 Mention 1 MB file size limit in readFile doc
The code has a hard coded limit of 1 MB in https://github.com/gohugoio/hugo/blob/master/tpl/os/os.go#L68

Now it's in the documentation too.
2019-06-13 17:25:26 +02:00
Avery
f71b67f34f Correct typo "RFC339" to "RFC1123Z" (#837)
* Correct typo "RFC339" to "RFC1123Z"

Per discussion in PR #887, I added a link to the Go time package documentation that lists constants that can serve as further examples.
2019-06-09 23:03:34 -04:00
Bradley Nelson
c3d83149af Boolean Values in the Where Function
This caused me some trouble should seem oblivious but would have saved me some time. Maybe it will save some others.
2019-05-23 08:27:07 +02:00
Alexander Borsuk
86ba9071cc Related md5 and aliases for sha1/sha256 2019-05-07 20:44:07 +02:00
Alexander Borsuk
15f48966ad Added related sha function into the See Also 2019-05-07 20:43:53 +02:00
Bjørn Erik Pedersen
e440dc6a48 Merge commit '5e078383a787e8b5ec3ba73f05ea4130840afbe2' 2019-02-01 09:01:04 +01:00
Kaushal Modi
b4589ff029 Fix a link 2019-01-14 16:19:37 -05:00
Kaushal Modi
b73dcb9adc Consistently use "posts" as section name in examples
While Hugo does not care if the section is named "post" or "posts",
this commit normalizes the whole Hugo documentation to use "posts"
when used as an example for a section name to prevent user confusion.

Fixes https://github.com/gohugoio/hugoDocs/issues/720.

Also highlight the use of `site.Params.mainSections`.
2019-01-14 13:23:53 -05:00
Cameron Moore
b54aea066c tpl: Fix reflect
Fixes #5564
2018-12-28 10:41:46 +01:00