Paul van Brouwershaven
0eaaa8fee3
Implement XML data support
...
Example:
```
{{ with resources.Get "https://example.com/rss.xml " | transform.Unmarshal }}
{{ range .channel.item }}
<strong>{{ .title | plainify | htmlUnescape }}</strong><br />
<p>{{ .description | plainify | htmlUnescape }}</p>
{{ $link := .link | plainify | htmlUnescape }}
<a href="{{ $link }}">{{ $link }}</a><br />
<hr>
{{ end }}
{{ end }}
```
Closes #4470
2021-12-02 17:30:36 +01:00
Bjørn Erik Pedersen
4b36498a85
Merge commit 'aa5ac36a3eb68b86c803caec703869efefc8447e'
2021-10-31 13:53:55 +01:00
Joe Mooring
f8d132d731
docs: Create path.Clean documentation
...
Related to #9005
2021-10-09 20:36:57 +02:00
Helder Pereira
d966f5d08d
highlight: Remove some pygments references
2021-08-21 15:50:49 +02:00
Bjørn Erik Pedersen
494f284be3
docs: Adjust config docs
2021-08-03 12:22:02 +02:00
Bjørn Erik Pedersen
0934983529
Merge commit 'bd77f6e1c99e04a476f0b1bb4e44569134e02399' into release-0.87.0
2021-08-03 11:52:57 +02:00
Bjørn Erik Pedersen
7907d24ba1
tpl/lang: Add new localized versions of lang.FormatNumber etc.
...
Fixes #8820
2021-07-29 16:40:06 +02:00
Bjørn Erik Pedersen
efa5760db5
Add timezone support for front matter dates without one
...
Fixes #8810
2021-07-27 19:02:48 +02:00
Bjørn Erik Pedersen
a57dda854b
Localize time.Format
...
Fixes #8797
2021-07-27 19:02:48 +02:00
Bjørn Erik Pedersen
d831d2fce8
Simplify "active menu" logic for section menus
...
Fixes #8776
2021-07-20 17:50:59 +02:00
Bjørn Erik Pedersen
4479f09c9c
Merge commit '7eb0e10a80708c638554b8221a3120dc1168566c'
2021-07-04 16:34:53 +02:00
Bjørn Erik Pedersen
162f41d0ef
Merge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'
2021-06-08 18:47:53 +02:00
Bjørn Erik Pedersen
f55d2f4376
tpl/fmt: Add erroridf template func
...
Fixes #8613
2021-06-07 19:11:03 +02:00
Joe Mooring
01758f99b9
Add math.Max and math.Min
...
Closes #8583
2021-05-28 20:38:45 +02:00
meehawk
abbc99d4c6
common/maps: Add Scratch.DeleteInMap
...
Add Scratch.DeleteInMap method. This method works similar to Scratch.SetInMap. It takes in two string parameters, key and mapKey and deletes the value mapped to mapKey in key
Closes #8504
2021-05-17 15:45:33 +02:00
Joe Mooring
2c7f5b62f6
docs: Update querify function description and examples
...
The querify function now accepts a slice per #8305 .
2021-05-10 17:18:37 +02:00
Bjørn Erik Pedersen
8f7891e70c
Merge commit '07b8d9466dfb59c429c1b470a0443337bc0aeefe'
2021-04-20 20:22:53 +02:00
Bjørn Erik Pedersen
7fdd2b95e2
Add hugo.IsExtended
...
Fixes #8399
2021-04-09 07:28:27 +02:00
Bjørn Erik Pedersen
c94aa5cf46
Merge commit '81689af79901f0cdaff765cda6322dd4a9a7ccb3'
2021-03-21 13:31:17 +01:00
Bjørn Erik Pedersen
7d0a261981
Merge commit 'acb9109df778fa4a51c0d8b29b3212b12988908f'
2021-02-18 17:52:49 +01:00
Aleksandr Demakin
ed3071b753
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
Bjørn Erik Pedersen
a1a9f088b1
Merge commit 'e48ffb763572814a3788780bb9653dfa2daeae22'
2021-01-20 12:48:39 +01:00
Bjørn Erik Pedersen
3ba147e702
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
Bjørn Erik Pedersen
4f1e4bb3fe
Merge commit '9f1265fde4b9ef186148337c99f08601633b6056'
2020-11-27 09:30:05 +01:00
Bjørn Erik Pedersen
c64e9504d8
Merge commit 'b74591123eac47a20d1f26ff3e2d291cd9c5cfc0'
2020-11-03 13:05:34 +01:00
Bjørn Erik Pedersen
3553fc533a
Merge commit '9cabb46f68bae01aeb1859727dcb21e8a10f5ec7'
2020-10-30 09:50:15 +01:00
Cameron Moore
807db97af8
tpl: Refactor time.AsTime location implementation
2020-10-21 09:49:25 +02:00
Mark Johnson
26eeb29147
tpl: Update Hugo time to support optional [LOCATION] parameter
2020-10-21 09:49:25 +02:00
Bjørn Erik Pedersen
df56682a10
Merge commit '534ae9c57a902aea9ed6e62390dec11fa74b7122'
2020-09-13 21:58:53 +02:00
Cameron Moore
f7c1b5fe1c
docs: Update replaceRE func
...
Updates for #7604
2020-09-07 22:45:14 +02:00
Cameron Moore
183e862607
docs: Update replace func
...
Updates for #7602
2020-09-07 22:45:14 +02:00
Cameron Moore
f50ee6bbe5
docs: Update merge function
...
Updates for #7601
2020-09-07 22:45:14 +02:00
Bjørn Erik Pedersen
b9e4f5898b
Merge commit '7d7771b673e5949f554515a2c236b23192c765c8'
2020-09-07 21:37:51 +02:00
Bjørn Erik Pedersen
f8b8b091fc
Merge commit 'cb39847dee488c373dd5bc2a3706385342a59355'
2020-08-14 18:31:40 +02:00
Bjørn Erik Pedersen
0a9172672a
Merge commit 'efa74c5c6e6ff1daddeb5834ea7c69bed2acf171'
2020-06-16 14:19:31 +02:00
Edouard
7eeebe1e5a
tpl/crypto: Add hmac
2020-06-05 20:04:11 +02:00
Bjørn Erik Pedersen
2919a6a503
common/maps: Add Scratch.Values
...
Fixes #7335
2020-05-29 19:51:49 +02:00
Bjørn Erik Pedersen
e0e81b280f
Merge commit 'c9403cbceaaeff53ff4833561f4eefe1dc1a405e'
2020-05-18 15:25:26 +02:00
Joe Mooring
991934497e
Add math.Pow
...
Closes #7266
2020-05-14 10:00:31 +02:00
Bjørn Erik Pedersen
e4621446ce
Merge commit '89044b8f8795f17c36396c67823183a20fc88139'
2020-05-06 12:12:57 +02:00
Bjørn Erik Pedersen
3d84ef9720
Merge commit 'c494c37a4523fbf2db6274dc87e0877fd5bec24b'
2020-03-31 22:11:54 +02:00
Joshua Wong
1352bc880d
Add hugo.IsProduction function
...
Fixes #6873
2020-02-25 17:58:07 +01:00
Chris Dennis
d184e5059c
tpl: Add math.Sqrt
...
Fixes #6941
2020-02-24 23:45:04 +01:00
Bjørn Erik Pedersen
82029c1ec9
Merge commit '4b670bc8cc38103c2c60e5090c2f56bf30832b8d'
2020-02-19 09:16:56 +01:00
Bjørn Erik Pedersen
1e5eb8679e
Merge commit '3c0036805d64fdd8290f1c4a31371780ff3ea365'
2020-02-06 13:03:30 +01:00
Bjørn Erik Pedersen
469351d5b6
Merge commit '26f1458a2df6b55eee3a5de46f5fec23a43a7c7d'
2020-01-05 11:14:51 +01:00
Bjørn Erik Pedersen
740b72558b
Merge commit '8a4005cf2b0ef34265ff8051a6b76226685fc226'
2019-12-22 22:51:45 +01:00
Bjørn Erik Pedersen
50cc7fe545
tpl: Do not return any value in errorf
...
Fixes #6653
2019-12-21 10:26:14 +01:00
Bjørn Erik Pedersen
1773d71d5b
tpl: Add a warnf template func
...
Fixes #6628
2019-12-21 10:23:00 +01:00
Bjørn Erik Pedersen
e625088ef5
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