Bjørn Erik Pedersen
a0009e070a
Merge commit '3c1deaf201a35de08d23cc58f8f03682cace3349'
2023-06-13 20:43:03 +02:00
Bjørn Erik Pedersen
a838a27e4c
Merge commit 'd3927310d5b2404c3238f9b899db3329ea516490'
2023-05-27 17:02:23 +02:00
Bjørn Erik Pedersen
b95e156940
Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'
2023-05-22 16:47:07 +02:00
Joe Mooring
150d190ff0
tpl/urls: Return empty string when JoinPath has zero args
2023-05-20 11:14:18 +02:00
Joe Mooring
5b3e165bad
tpl/urls: Add JoinPath template function
...
See https://pkg.go.dev/net/url#JoinPath
Closes #9694
2023-05-19 10:31:17 +02:00
Oleksandr Redko
bda082c98c
tpl: Add math.Abs
...
Fixes #10941 .
2023-05-16 18:32:07 +02:00
Joe Mooring
b6f44aaf1a
docs: Improve examples of variadic math functions
2023-03-12 10:32:01 +01:00
septs
84201e8d5d
tpl/math: Allow multi numbers in add, sub, mul, div, min and max
2023-03-11 11:21:08 +01:00
Jonathan Fisher
d171d1543d
tpl: Add hasSuffix alias
...
strings.HasPrefix already has an alias of hasPrefix
but strings.HasSuffix has no such alias.
This PR adds a hasSuffix alias to the tpl function with corresponding
function documentation.
It also adds a Minor update to the hasPrefix function documentation
re: keywords and relatedfuncs.
Completes https://github.com/gohugoio/hugo/issues/10474
2023-03-08 10:18:34 +01:00
Bjørn Erik Pedersen
7e539cb398
Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6'
2023-02-23 07:52:04 +01:00
Bjørn Erik Pedersen
b661132e0a
Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382'
2023-01-17 12:51:46 +01:00
Bjørn Erik Pedersen
9a215d6950
Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'
2022-12-20 11:04:41 +01:00
Bjørn Erik Pedersen
ef518485ce
Merge commit 'da16527896d3087585c5e758083ea498dcabc2c3'
2022-12-02 09:19:23 +01:00
Bjørn Erik Pedersen
f04cc581e1
Merge commit '00c4484c7092181729f6f470805bc7d72e8ad17b'
2022-11-17 16:16:19 +01:00
Bjørn Erik Pedersen
09e10110a3
tpl/encoding: Add noHTMLEscape option to jsonify
2022-10-24 17:21:42 +02:00
JB
01ebb6e304
Don't use self-closing generator tag
2022-10-14 12:16:53 +02:00
Bjørn Erik Pedersen
af23cdca9c
Merge commit '90ad8045056167004d27857a95542936657b8a16'
2022-09-13 20:34:24 +02:00
Bjørn Erik Pedersen
65e52a7f5c
Merge commit 'bdf935d66c1f02dfc942a30e9fc00519bba3aacb'
2022-06-28 20:51:33 +02:00
Bjørn Erik Pedersen
604cfffc5b
Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'
2022-06-16 07:22:11 +02:00
Khayyam Saleem
09ac733381
common: Add hugo.GoVersion
...
Closes #9849 . This enables `hugo.GoVersion` in templates to access the
version of Go that the Hugo binary was built with.
2022-06-14 09:48:45 +02:00
Joe Mooring
953f215f32
tpl/path: Add path.BaseName function
...
Closes #9973
2022-06-06 09:36:16 +02:00
Bjørn Erik Pedersen
4852a37653
Merge commit '3902f9a4767fe6e62ac5146728d8311b8cd227e0'
2022-04-28 11:52:15 +02:00
Bjørn Erik Pedersen
5b5dcb8d5a
Merge commit 'ec920363cdeb687c8bcac9c242767d366fb058cb'
2022-04-08 13:32:01 +02:00
Bjørn Erik Pedersen
d7497b28c1
Merge commit 'd276e901b36d2576ef8350ed96b17f66254eac1b'
2022-03-26 11:04:57 +02:00
Joe Mooring
94e8a90769
tpl/crypto: Add optional encoding arg to hmac function
...
Closes #9709
2022-03-23 19:42:56 +01:00
Bjørn Erik Pedersen
41b5bc9637
Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'
2022-02-28 10:37:27 +01:00
Bjørn Erik Pedersen
c707b71cdf
Merge commit '230a495941b191af0bdaa7e2fc8c61607cb38207'
2022-02-14 12:58:42 +01:00
Bjørn Erik Pedersen
098254f175
Merge commit 'a8e9fc699a6ff7d578f97a7c553ce844efad8fdb'
2022-01-12 08:16:35 +01:00
Bjørn Erik Pedersen
fbb3c181cb
docs: Add dependency table to maintainance page
...
See #8949
2022-01-11 21:57:37 +01:00
Bjørn Erik Pedersen
7396aa945a
Add hugo.Deps
...
Fixes #8949
2022-01-11 18:06:23 +01:00
Bjørn Erik Pedersen
6183184b96
Merge commit '45e6fdb315d113ba13e20a633ed0c67e3f25170d'
2021-12-13 21:05:10 +01:00
Bjørn Erik Pedersen
6c841a691e
Merge commit '8d9511a08f14260cbfb73119e4afae50e5a9966d'
2021-12-08 08:54:25 +01:00
Bjørn Erik Pedersen
e71d715b9b
Add custom font support to images.Text
...
Fixes #9253
2021-12-07 16:53:02 +01:00
Paul van Brouwershaven
283394a4fd
images: Text filter that draws text with the given options ( #9239 )
...
Fixes #9238
2021-12-07 11:29:55 +01:00
Joe Mooring
5538507e90
tpl/transform: Optional options for highlight func
...
Closes #9249
Fixes gohugoio/hugoDocs#63
2021-12-07 11:26:56 +01:00
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