Commit Graph

4434 Commits

Author SHA1 Message Date
Bjørn Erik Pedersen 24f2afeb2d Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688' 2023-10-20 09:43:56 +02:00
Joe Mooring 3f947c19a5 hugolib: Deprecate .Site.DisqusShortname
Use .Site.Config.Services.Disqus.Shortname instead.
2023-10-18 17:35:54 +02:00
Joe Mooring 6bd1af892d hugolib: Deprecate .Site.GoogleAnalytics
Use .Site.Config.Services.GoogleAnalytics.ID instead.
2023-10-17 20:06:42 +02:00
Joe Mooring 78becc6eed tpl/tplimpl: Deprecate .Site.Social usage with internal templates 2023-10-17 20:04:24 +02:00
JingWangTW cb18a5183f Fix broken link 2023-10-17 09:44:09 -07:00
calalloo 4bf0c719fb Fix typo 2023-10-14 18:09:34 -07:00
Joe Mooring 50d8ad1af0 Fix muiltilingual menu definition instructions 2023-10-14 16:14:17 -07:00
Joe Mooring 1a32519a9b Fix typos 2023-10-13 14:29:09 -07:00
Joe Mooring 6f34ca8e03 Explain usage of front matter to target a template 2023-10-13 13:10:58 -07:00
Joe Mooring 5bd977257e Improve goldmark config docs 2023-10-13 11:48:29 -07:00
Joe Mooring 4476329382 Remove Docker notes from installation instructions 2023-10-13 08:19:08 -07:00
Emmanuel Ferdman 84741d173c Update reference to hugo.work 2023-10-06 14:46:42 -07:00
Joe Mooring e3ec2a4f20 common/hugo: Add hugo.IsServer and hugo.IsDevelopment
And deprecate site.IsServer.

Closes #11510
2023-10-06 16:26:51 +02:00
Joe Mooring 0338d7c711 Fix menu template 2023-10-03 19:24:58 -07:00
Oleksandr Redko f5d2f5ed49 Fix typos in content/en/functions/fmt 2023-10-03 08:36:48 -07:00
Joe Mooring a3a40ff999 Add return type to functions 2023-09-30 21:03:52 -07:00
Joe Mooring 85ac3e7791 Remove outdated feature image 2023-09-29 12:56:33 -07:00
Joe Mooring d47d889e40 Fix signatures 2023-09-29 11:08:04 -07:00
Joe Mooring 7551ba28f7 Document safe.JSStr function 2023-09-28 13:48:50 -07:00
Joe Mooring e77993be08 Document keyVals function 2023-09-28 11:21:56 -07:00
Joe Mooring babf915448 Update echoparam 2023-09-27 08:49:53 -07:00
Joe Mooring 8c8203efa0 Adjust related functions 2023-09-26 14:26:10 -07:00
Joe Mooring 4cb1b30fcd Fix example 2023-09-26 11:06:13 -07:00
Joe Mooring ba95eca64c Improve showcase prose 2023-09-26 10:53:00 -07:00
Tobias Kummer 5d3dcf3662 Add Overmind Studios showcase 2023-09-26 10:38:23 -07:00
Joe Mooring 8d634ac701 Change code blocks from indented to fenced 2023-09-26 10:36:04 -07:00
Joe Mooring cfab978e67 Add missing code fences 2023-09-26 09:51:47 -07:00
Joe Mooring 407dd5c475 Limit related pages for functions to other functions 2023-09-26 00:43:39 -07:00
Will Faught 9fa67d981b Fix .Site.LastChange doc
Co-authored-by: Joe Mooring <joe@mooring.com>
2023-09-24 14:10:22 -07:00
Bjørn Erik Pedersen f864af97a0 docs: Even more about images.Process 2023-09-24 12:26:00 +02:00
Bjørn Erik Pedersen 9d772d5f00 docs: More about images.Process 2023-09-24 12:11:03 +02:00
Bjørn Erik Pedersen 41c3536d1c Merge commit '9aec42c5452b3eb224888c50ba1c3f3b68a447e9' 2023-09-24 11:54:45 +02:00
Bjørn Erik Pedersen 918ed53f49 Add images.Process filter
This allows for constructs like:

```
{{ $filters := slice (images.GaussianBlur 8) (images.Grayscale) (images.Process "jpg q30 resize 200x") }}
{{ $img = $img | images.Filter $filters }}
```

Note that the `action` option in `images.Process` is optional (`resize` in the example above), so you can use the above to just set the target format, e.g.:

```
{{ $filters := slice (images.GaussianBlur 8) (images.Grayscale) (images.Process "jpg") }}
{{ $img = $img | images.Filter $filters }}
```

Fixes #8439
2023-09-24 11:54:29 +02:00
Bjørn Erik Pedersen 5736458830 Add $image.Process
Which supports all the existing actions: resize, crop, fit, fill.

But it also allows plain format conversions:

```
{{ $img = $img.Process "webp" }}
```

Which will be a simple re-encoding of the source image.

Fixes #11483
2023-09-24 11:54:29 +02:00
Joe Mooring 7ef2dbce4a Cleanup RSS templates page 2023-09-23 20:37:38 -07:00
Bjørn Erik Pedersen a1151b0fde Add images.Opacity filter
Fixes #11471
2023-09-22 15:03:16 +02:00
Joe Mooring 0e23d5e1ad Fix multilingual permalinks example 2023-09-20 09:31:30 -07:00
dryscord b3c342b074 Update faq.md 2023-09-20 09:18:30 -07:00
Bjørn Erik Pedersen f73109ae24 Regen CLI docs 2023-09-20 18:06:01 +02:00
Salim B ac6ee2027b Fix minor nitpicks (#2233)
Co-authored-by: Joe Mooring <joe@mooring.com>
2023-09-18 10:24:25 -07:00
Razon Yang f24fcffe1c Mention the Giscus comments system (#2234) 2023-09-18 09:58:33 -07:00
Joe Mooring 418fa981e5 Remove reference to Ghost migration tool
Closes #2229
2023-09-07 07:27:49 -07:00
Joe Mooring 94a76df291 Adjust table layout 2023-09-05 22:47:18 -07:00
Oleksandr Redko e263ad6b9d content: Fix typos 2023-09-05 21:27:40 -07:00
Joe Mooring fd1eb26b55 Update featured image in digital.gov showcase 2023-09-05 18:36:10 -07:00
Joe Mooring d3d946555e Correct directory description 2023-09-01 20:10:11 -07:00
Joe Mooring bbe1dff56a Use sentence case for heading 2023-09-01 09:23:02 -07:00
Bryce Wray acfa0be544 Add hosting provider fetch depth to GitInfo variables page 2023-09-01 09:19:07 -07:00
Joe Mooring d78c427e68 Fix typo 2023-09-01 09:00:27 -07:00
Sid 751517fea8 Fix spelling mistake 2023-08-31 23:16:28 -07:00