159 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen
e03e72debe
Merge branch 'temp0821' 2021-04-20 13:53:19 +02:00
Joost Baaij
5d354c38d2 Replaced ``` code blocks with Code Toggler 2021-04-16 11:35:20 +02:00
Joe Mooring
c9d065c20e
Remove duplicate YAML keys (#1420) 2021-04-15 22:16:24 -07:00
Joe Mooring
9f8ba56dc4
Remove leading dot from where function KEY (#1419)
Closes #1418
2021-04-14 22:42:50 -07:00
Bjørn Erik Pedersen
250e205523 Add hugo.IsExtended
Fixes #8399
2021-04-09 07:28:27 +02:00
Joe Mooring
dea5e1fd7f
Fix typo on merge function page (#1408) 2021-04-07 13:32:54 -07:00
Salim B
be0b64a468 Omit ISO 2021-04-05 08:55:46 +02:00
Salim B
cbb5b83674 Fix dateFormat documentation
Please countercheck my changes – I _think_ `dateFormat` cannot return its `INPUT` "as a Go `time.Time` type value" as the documentation originally suggested. This is what `time` does.
2021-04-05 08:55:46 +02:00
Rob Playford
17f15daa61
fix file naming used in example (#1392) 2021-03-31 07:17:29 -07:00
Salim B
00665b97b7 Improve description of site.md 2021-03-29 10:11:33 +02:00
Salim B
edcf5e3fc5 Fix example in merge.md 2021-03-29 10:11:16 +02:00
Salim B
4f2e92f2aa Adapt anchorize.md to Goldmark 2021-03-25 17:02:38 +01:00
Patrice Chalin
f15c06f232
markdownify: add note about render-hooks and .RenderString (#1281) 2021-03-24 10:09:52 -07:00
Patrice Chalin
9cece66400
Function sort: fix example labels (#1344)
* Function sort: fix example labels

* Review feedback: adjust front matter and config values
2021-03-17 07:11:21 -07:00
Joe Mooring
84444120ff
Revert "Fix sample data for sort function (#1363)" (#1364)
This reverts commit 05c8619f480c47343df66d1b1980fef83820e552.
2021-03-16 09:22:41 -07:00
Joe Mooring
05c8619f48
Fix sample data for sort function (#1363) 2021-03-16 07:16:30 -07:00
swamidass
f1c64cd5a5 Improved documentation.
This is based on @bep 's explanation here: https://discourse.gohugo.io/t/intersect-function-and-order/31607?u=swamidass
2021-03-06 21:50:37 +01:00
Bjørn Erik Pedersen
79e3e1ebc8 Merge commit 'acb9109df778fa4a51c0d8b29b3212b12988908f' 2021-02-18 17:52:49 +01:00
Regis Philibert
6178940528 Add site function
Fixes #1324
2021-02-11 19:27:22 -05:00
Sean Wilson
d8847a1443
docs: Fix HTML code in .RenderString description being stripped out (#1320) 2021-02-01 12:37:23 +09:00
Aleksandr Demakin
9c915ea275 docs: Remove mention of a file size limit for readFile
The limit itself was removed in this PR: https://github.com/gohugoio/hugo/pull/8172.
2021-01-23 14:14:51 +01:00
Joe Mooring
33021d451b
Update substr examples (#1304)
The substr function was fixed in 0.80, but the examples
showed 0.79 behavior.
2021-01-01 20:38:39 -05:00
Bjørn Erik Pedersen
e267699884
Merge branch 'temp791' 2020-12-19 17:05:54 +01:00
Bjørn Erik Pedersen
0b896b2c0d images: Add images.Overlay filter
This allows for constructs ala:

```
{{ $overlay := $img.Filter (images.Overlay $logo 50 50 )}}
```
Or:

```
{{ $logoFilter := (images.Overlay $logo 50 50 ) }}
{{ $overlay := $img | images.Filter $logoFilter }}
```

Which will overlay the logo in the top left corner (x=50, y=50) of `$img`.

Fixes #8057
Fixes #4595
Updates #6731
2020-12-17 09:14:18 +01:00
Joe Mooring
25cf8f48bb Improve substr examples 2020-11-27 22:18:39 +01:00
Bjørn Erik Pedersen
e16e57e9a4
Update path.Split.md 2020-11-27 16:08:46 +01:00
Bjørn Erik Pedersen
2749b88fd0
Update path.Split.md 2020-11-27 16:06:43 +01:00
Andrew Medworth
1de7a358ca
Clarify that "with" blocks do not render with empty values (#1287)
* Clarify that "with" blocks do not render on empty values

* Fix typo
2020-11-25 22:17:43 +01:00
Johnny
5e9a60fc02
Format dates with "th", "nd", and "rd". (#1254)
* Format dates with "th", "nd", and "rd".

[This post by ssddanbrown](https://discourse.gohugo.io/t/formatting-a-date-with-suffix-2nd/5701) suggested a nice little snippet that allows Hugo to format dates into something like `posted on 5th of March 2017`.

* Update content/en/functions/format.md
2020-11-02 16:09:40 +07:00
Bjørn Erik Pedersen
bebef9bbe4 Merge commit '9cabb46f68bae01aeb1859727dcb21e8a10f5ec7' 2020-10-30 09:50:15 +01:00
Cameron Moore
f5ed02685f tpl: Refactor time.AsTime location implementation 2020-10-21 09:49:25 +02:00
Mark Johnson
f3b8eccd26 tpl: Update Hugo time to support optional [LOCATION] parameter 2020-10-21 09:49:25 +02:00
Joe Mooring
d42f6d8eb0 Fix strings.Repeat documentation
Argument order was reversed.
2020-10-17 19:55:44 +02:00
Bjørn Erik Pedersen
2cb2b22bb7 Merge commit '534ae9c57a902aea9ed6e62390dec11fa74b7122' 2020-09-13 21:58:53 +02:00
Joe Mooring
4895c29c5b
Document strings.Count function
Closes #1218
2020-09-08 13:06:13 +02:00
Cameron Moore
c946082e79 docs: Update replaceRE func
Updates for #7604
2020-09-07 22:45:14 +02:00
Cameron Moore
149054341b docs: Update replace func
Updates for #7602
2020-09-07 22:45:14 +02:00
Cameron Moore
d917567df8 docs: Update merge function
Updates for #7601
2020-09-07 22:45:14 +02:00
Joe Mooring
d50aba8f06 Revise ref and relref function pages
Closes #1212
2020-09-05 18:24:43 +02:00
Joe Mooring
42a19f479e Fix example of output from urlize function
Closes #1204
2020-08-29 19:20:55 +02:00
Joe Mooring
fd4a103bfd
Fix several 404 errors (#1162)
Closes #1161

I removed the paragraph related to Amazon S3 deployment from Wercker;
I was unable to find any documentation on the Wercker site. This is not
surprising. Wercker was acquired by Oracle in 2017, and I suspect Oracle
has little interest in promoting any of Amazon's services.
2020-07-31 19:29:47 +09:00
Bjørn Erik Pedersen
b877781659 Merge commit 'efa74c5c6e6ff1daddeb5834ea7c69bed2acf171' 2020-06-16 14:19:31 +02:00
Edouard
c7cdebed38 tpl/crypto: Add hmac 2020-06-05 20:04:11 +02:00
Bjørn Erik Pedersen
ce280c5d6f
Update relurl.md 2020-06-03 22:05:32 +02:00
Christian Oliff
bb4d0e703d Capitalization and Redirecting URL fixes 2020-06-03 17:50:58 +02:00
Christian Oliff
1d99bb182a Typos and whitespacing issues fixed 2020-06-03 10:45:04 +02:00
Christian Oliff
9c3ee62ae8 more fixes 2020-06-02 09:42:19 +02:00
Christian Oliff
e9bc5880af whitespace, typos and HTTPS fixes 2020-06-02 09:42:19 +02:00
Bjørn Erik Pedersen
f74a25b927
common/maps: Add Scratch.Values
Fixes #7335
2020-05-31 15:33:01 +02:00
Bjørn Erik Pedersen
c49195c69b common/maps: Add Scratch.Values
Fixes #7335
2020-05-29 19:51:49 +02:00