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
8377c3cea1
docs: Regen docs helper
2022-09-22 18:55:00 +02:00
Bjørn Erik Pedersen
4f9cb4f344
docs: Regenerate CLI docs
2022-09-22 17:57:13 +02:00
Bjørn Erik Pedersen
a4028112e3
resources/images: Add $image.Colors
...
Which returns the most dominant colors of an image using a simple histogram method.
Fixes #10307
2022-09-22 15:57:35 +02:00
Mathieu Parent
86653fa38e
config/security: Allow proxy variables in subcommands
...
In particular for go get
2022-09-19 12:37:35 +02:00
Bjørn Erik Pedersen
a5cda5ca4d
server: Add 404 support
2022-09-14 14:25:33 +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
0cb459a20a
docs: Regen docshelper
2022-06-16 07:23:38 +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
Dawid Potocki
5a9ecb82a3
resources/page: Add :slugorfilename attribute
...
Fixes #4739 , #385
2022-06-13 21:45:03 +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
3fcbee261a
docs: Regen CLI docs
2022-05-31 10:24:01 +02:00
Bjørn Erik Pedersen
db9d274275
docs: Regen docs helper
2022-05-31 10:23:20 +02:00
Bjørn Erik Pedersen
95baafeac4
Merge commit 'e4bfe59c4e043c92d3992587d8c64d264b262a22'
2022-05-31 10:22:05 +02:00
Bjørn Erik Pedersen
6f7bf3f2d7
Fix indentation in highlight shortcode
...
This commit adds a new `.InnerDeindent` method to the shortcode context, which is `.Inner` with any
indendation removed. This is then used in the built-in `highlight` shortcode to prevent the extra
whitespace getting hightlighted.
Fixes #4717
2022-05-31 09:05:54 +02:00
Bjørn Erik Pedersen
4b189d8fd9
postcss: Fix import error handling
...
Note that we will now fail if `inlineImports` is enabled and we cannot resolve an import.
You can work around this by either:
* Use url imports or imports with media queries.
* Set `skipInlineImportsNotFound=true` in the options
Also get the argument order in the different NewFileError* funcs in line.
Fixes #9895
2022-05-15 20:25:25 +02:00
Bjørn Erik Pedersen
855e5869c6
docs: Regen CLI docs
2022-05-08 16:57:29 +02:00
Bjørn Erik Pedersen
1c7759028e
Merge commit '327aaed6d8ca57d8e5e3acb99ff53402ff1c556d'
2022-05-08 16:56:42 +02:00
Bjørn Erik Pedersen
a4fff5753f
docs: Regen docs helper
2022-04-28 11:53:03 +02:00
Bjørn Erik Pedersen
4852a37653
Merge commit '3902f9a4767fe6e62ac5146728d8311b8cd227e0'
2022-04-28 11:52:15 +02:00
Bjørn Erik Pedersen
2dbdf38a54
resources: Add key
to reources.GetRemote options map
...
If set, `key` will be used as the only cache key element for the resource.
The default behaviour is to calculate the key based on the URL and all the options.
This means that you can now do:
```
{{ $cacheKey := print $url (now.Format "2006-01-02") }}
{{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }}
```
Fixes #9755
2022-04-13 09:18:17 +02:00
Joe Mooring
3117e58595
deps: Update github.com/tdewolff/minify/v2 v2.10.0 => v2.11.0
...
Fixes #9713
Fixes #9740
Adds support for minify.tdewolff.svg.keepComments (bool)
2022-04-08 21:44:29 +02:00
Bjørn Erik Pedersen
5b5dcb8d5a
Merge commit 'ec920363cdeb687c8bcac9c242767d366fb058cb'
2022-04-08 13:32:01 +02:00
Bjørn Erik Pedersen
ffe3eb9195
docs: Regen CLI docs
2022-04-08 13:31:50 +02:00
Cathrine Paulsen
da00e7714e
Add environment as a new filter to _cascade.target
...
Fixes #9612
2022-04-05 09:41:24 +02:00
Bjørn Erik Pedersen
db1562e134
docs: Regen docshelper
2022-03-26 11:06:04 +02:00
Bjørn Erik Pedersen
5b18e10841
docs: Regen CLI docs
2022-03-26 11:05:30 +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
3bc742bea0
docs: Regenerate CLI docs
2022-03-11 14:47:27 +01:00
Bjørn Erik Pedersen
a4ac188c19
docs: Regenerate docshelper
2022-03-10 10:08:04 +01:00
Bjørn Erik Pedersen
cdb8b0842b
docs: Regenerate docshelper
2022-03-09 11:33:53 +01:00
Bjørn Erik Pedersen
7182809d96
docs: Regenerate CLI docs
2022-03-08 19:40:50 +01:00
Bjørn Erik Pedersen
1f8cd2614d
docs: Regenerate docshelper
2022-03-08 19:40:07 +01:00
Bjørn Erik Pedersen
9d76b8fa34
Merge commit 'd706529720b3b2ccb99719ccd578062ca25a0cc2'
2022-03-08 19:39:33 +01:00
Bjørn Erik Pedersen
41b5bc9637
Merge commit 'c1398b91a9f4c67876b31feb67516b252e654d3c'
2022-02-28 10:37:27 +01:00
Bjørn Erik Pedersen
12d00d288c
docs: Regenerate docs helper
2022-02-28 08:59:57 +01:00
Bjørn Erik Pedersen
14915a0c32
cod: Regen CLI docs
2022-02-28 08:12:35 +01:00
Bjørn Erik Pedersen
f7109771a0
CodeblockContext method renames
...
Fixes #9577
2022-02-27 17:59:36 +01:00
Bjørn Erik Pedersen
1a257bb2ba
Move the Goat template to the correct place
...
Updates #7765
2022-02-25 00:09:07 +01:00
Bjørn Erik Pedersen
08fdca9d93
Add Markdown diagrams and render hooks for code blocks
...
You can now create custom hook templates for code blocks, either one for all (`render-codeblock.html`) or for a given code language (e.g. `render-codeblock-go.html`).
We also used this new hook to add support for diagrams in Hugo:
* Goat (Go ASCII Tool) is built-in and enabled by default; just create a fenced code block with the language `goat` and start draw your Ascii diagrams.
* Another popular alternative for diagrams in Markdown, Mermaid (supported by GitHub), can also be implemented with a simple template. See the Hugo documentation for more information.
Updates #7765
Closes #9538
Fixes #9553
Fixes #8520
Fixes #6702
Fixes #9558
2022-02-24 18:59:50 +01:00
John Elliott
7732da9f93
Allow images to be cropped without being resized
...
Introduces the Crop method for image processing which implements gift.CropToSize. Also allows a smartCrop without resizing, and updates the documentation.
Fixes #9499
2022-02-23 10:01:50 +01:00
Bjørn Erik Pedersen
a87be597af
modules: Add modules.Workspace config for Go 1.18
...
Sets `GOWORK` env var for Go 1.18.
Fixes #9525
2022-02-18 15:06:58 +01:00
Bjørn Erik Pedersen
f2e7b49acf
Add --printUnusedTemplates
...
Fixes #9502
2022-02-15 20:01:57 +01:00
Bjørn Erik Pedersen
837fdfdf45
commands: Rename --i18n-warnings to printI18nWarnings
...
To get it in line with the others.
2022-02-15 13:03:36 +01:00
Bjørn Erik Pedersen
6819feab6c
commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage
...
To get it in line with the others.
2022-02-15 13:00:06 +01:00