Bjørn Erik Pedersen
29b6e133a8
docs: Regen docshelper
2023-10-30 15:03:10 +01:00
Joe Mooring
27b22cd87e
commands/new: Remove format flag from new content cmd
...
Fixes #11462
2023-10-30 09:02:26 +01:00
Bjørn Erik Pedersen
0baa4f9837
Merge commit 'aaaf1c8df5d6aa061609d20510f7fa6c42e5cc1a'
2023-10-29 11:33:05 +01:00
Bjørn Erik Pedersen
d3d4ab41a9
docs: Regenerate docshelper
2023-10-29 11:31:51 +01:00
Joe Mooring
3ed28e4bfe
resources/images: Create padding image filter
...
Closes #11599
2023-10-29 10:16:37 +01:00
Bjørn Erik Pedersen
705e3cd5f5
Merge commit '3710a5ec7efe6baca6e452f43632c05d22bab3c4'
2023-10-27 10:06:44 +02:00
Bjørn Erik Pedersen
e2dd4cd05f
Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688'
2023-10-20 09:43:56 +02:00
Joe Mooring
2eca1b3cc1
hugolib: Deprecate .Site.DisqusShortname
...
Use .Site.Config.Services.Disqus.Shortname instead.
2023-10-18 17:35:54 +02:00
Joe Mooring
a692278bc6
hugolib: Deprecate .Site.GoogleAnalytics
...
Use .Site.Config.Services.GoogleAnalytics.ID instead.
2023-10-17 20:06:42 +02:00
Joe Mooring
4910312ee7
tpl/tplimpl: Deprecate .Site.Social usage with internal templates
2023-10-17 20:04:24 +02:00
Joe Mooring
d1b4458536
common/hugo: Add hugo.IsServer and hugo.IsDevelopment
...
And deprecate site.IsServer.
Closes #11510
2023-10-06 16:26:51 +02:00
Bjørn Erik Pedersen
a9d19dbdd6
docs: Even more about images.Process
2023-09-24 12:26:00 +02:00
Bjørn Erik Pedersen
12d713176f
docs: More about images.Process
2023-09-24 12:11:03 +02:00
Bjørn Erik Pedersen
1768684d8b
docs: Regen docshelper
2023-09-24 11:56:43 +02:00
Bjørn Erik Pedersen
eb0ed33dfd
Merge commit '9aec42c5452b3eb224888c50ba1c3f3b68a447e9'
2023-09-24 11:54:45 +02:00
Bjørn Erik Pedersen
6a246d1152
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
ef0e7149d6
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
Bjørn Erik Pedersen
f9b3c0f486
Add images.Opacity filter
...
Fixes #11471
2023-09-22 15:03:16 +02:00
Bjørn Erik Pedersen
db45dbbee8
Merge commit '77b976dd92b4f66657d83d875aef0c617df492d9'
2023-08-30 19:24:34 +02:00
Bjørn Erik Pedersen
e847a98db6
docs: Regen docs helper
2023-08-30 19:23:34 +02:00
OMOTO Tsukasa
d7dcc76d27
markup/goldmark: Add CJK extension
...
Fixes #10472
2023-08-30 13:08:45 +02:00
Joe Mooring
90944aa261
docshelper: Improve template lookup order descriptions
...
- Always include example for "with layout/type set"
- Use lowercase for "set to" examples (lookup is case sensitive)
- Consistent use of taxonomy and term
Fixes gohugoio/hugoDocs#1734
2023-08-15 12:53:18 +02:00
Bjørn Erik Pedersen
a2f6400d65
cache: Hide IsResourceDir from the exported config
2023-08-09 23:49:08 +02:00
Bjørn Erik Pedersen
d139f30234
docs: Replace docs.json with docs.yaml
...
Updates #11345
2023-08-08 09:13:17 +02:00
Bjørn Erik Pedersen
851bf3515e
Add all config to docshelper.json
...
Also consolidate so the mediaTypes and outputFormats are listed once only.
Fixes #11328
2023-08-07 13:42:54 +02:00
Bjørn Erik Pedersen
5d5fb22ead
Merge commit '7c62d6ef1654c0383eae474d3bd9ddf7754c1f30'
2023-08-07 10:38:12 +02:00
Bjørn Erik Pedersen
d297c8e1b5
docs: Regenerate CLI docs
2023-07-30 18:54:08 +02:00
Bjørn Erik Pedersen
295d733883
Update where.md
2023-07-29 22:06:22 +02:00
Bjørn Erik Pedersen
d5247788ee
docs: Update where
...
Go doesn't use the RE2 (C++) library, it's a pure Go implementation.
2023-07-29 19:27:30 +02:00
Joe Mooring
036e260d8d
docs: Update where function operators
...
Related to #11281
2023-07-29 16:11:53 +02:00
Bjørn Erik Pedersen
a50356b9a2
docs: Rework the cacheDir documentation
2023-07-29 11:59:37 +02:00
Bjørn Erik Pedersen
8859be1c01
Merge commit '87de22d7464e239c775fbd48ebce1665d5b1e80d'
2023-07-29 11:17:28 +02:00
Joe Mooring
c934a45069
docs: Refresh docs.json
2023-07-08 23:20:11 +02:00
Bjørn Erik Pedersen
12d3469dd1
Add titleCaseStyle none and firstupper
...
Fixes #11204
2023-07-05 20:35:20 +02:00
Bjørn Erik Pedersen
c27639b9a0
docs: Regen docs helper
2023-07-03 19:25:27 +02:00
Joe Mooring
12e4c4d5dc
docs: Update permalinks documentation
...
See #8523
See #10847
2023-06-27 11:04:49 +02:00
Bjørn Erik Pedersen
9f98b3e718
docs: Regen docshelper
2023-06-19 17:52:52 +02:00
Bjørn Erik Pedersen
7241b5fd51
docs: Regen CLI docs
2023-06-19 17:40:17 +02:00
Bjørn Erik Pedersen
a0009e070a
Merge commit '3c1deaf201a35de08d23cc58f8f03682cace3349'
2023-06-13 20:43:03 +02:00
Erica Mays
258884f44f
cache: Set default cache path based on $USER
...
Change the default cache directory to `$TMPDIR/hugo_cache_$USER`, so
that multi-user systems do not have caches that interfere with each
other. The other cache-choosing logic (e.g. Netlify exceptions,
configuration options) are not affected.
Fixes #7391
2023-06-12 21:33:35 +02:00
Bjørn Erik Pedersen
6c955cc3df
docs: Regenerate CLI docs
2023-06-05 11:54:57 +02:00
Bjørn Erik Pedersen
a6d774e809
docs: Regenerate CLI docs
2023-06-01 10:51:41 +02:00
Bjørn Erik Pedersen
9e4072ac23
Merge commit 'dfb1895e4b82b2249d9baaed37ac7ae5e855a126'
2023-06-01 10:51:24 +02:00
Bjørn Erik Pedersen
20ea2e0c65
docs: Regenerate CLI docs
2023-05-28 13:07:47 +02:00
Bjørn Erik Pedersen
ffdbce5787
docs: Regen CLI docs
2023-05-27 17:03:14 +02:00
Bjørn Erik Pedersen
a838a27e4c
Merge commit 'd3927310d5b2404c3238f9b899db3329ea516490'
2023-05-27 17:02:23 +02:00
Bjørn Erik Pedersen
b6e6438f7f
docs: Regen docshelper
2023-05-22 18:54:34 +02:00
Bjørn Erik Pedersen
10d0fcc01f
docs: Regen CLI docs
2023-05-22 16:48:58 +02:00
Bjørn Erik Pedersen
b95e156940
Merge commit 'f96384a3b596f9bc0a3a035970b09b2c601f0ccb'
2023-05-22 16:47:07 +02:00
InLaw
2db7ec622f
tpl/tplimpl: Add img loading attribute to figure shortcode ( #10927 )
2023-05-21 12:28:45 -07: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
bcd7ac7704
Revert "Update syntax-highlighting.md ( #10929 )" ( #10930 )
...
This reverts commit a4fb8dc6bc
.
2023-05-06 09:36:29 -07:00
Kirill Bobyrev
a4fb8dc6bc
Update syntax-highlighting.md ( #10929 )
2023-05-06 07:00:37 -07: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
davidejones
bebb2b8d0a
switch transfers to workers
2023-03-07 15:38:26 +01:00
davidejones
e6f029bdee
customize parallel transfer count
2023-03-07 15:38:26 +01:00
Bjørn Erik Pedersen
a56b9071db
cods: Regen docs helper
2023-03-01 16:35:23 +01:00
Bjørn Erik Pedersen
97b010f521
Merge commit '336622d5e7afd9334cd2de7150d4f16bdf7c24f9'
2023-03-01 11:56:07 +01:00
Bjørn Erik Pedersen
e442a63bb7
related: Add config option cardinalityThreshold
...
Fixes #10744
2023-02-23 17:06:22 +01:00
Bjørn Erik Pedersen
d5601e8391
docs: Another fix related docs example
2023-02-23 11:09:55 +01:00
Bjørn Erik Pedersen
cedd04db31
docs: Fix related docs example
2023-02-23 10:54:30 +01:00
Bjørn Erik Pedersen
7e539cb398
Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6'
2023-02-23 07:52:04 +01:00
Bjørn Erik Pedersen
90da7664bf
Add page fragments support to Related
...
The main topic of this commit is that you can now index fragments (content heading identifiers) when calling `.Related`.
You can do this by:
* Configure one or more indices with type `fragments`
* The name of those index configurations maps to an (optional) front matter slice with fragment references. This allows you to link
page<->fragment and page<->page.
* This also will index all the fragments (heading identifiers) of the pages.
It's also possible to use type `fragments` indices in shortcode, e.g.:
```
{{ $related := site.RegularPages.Related .Page }}
```
But, and this is important, you need to include the shortcode using the `{{<` delimiter. Not doing so will create infinite loops and timeouts.
This commit also:
* Adds two new methods to Page: Fragments (can also be used to build ToC) and HeadingsFiltered (this is only used in Related Content with
index type `fragments` and `enableFilter` set to true.
* Consolidates all `.Related*` methods into one, which takes either a `Page` or an options map as its only argument.
* Add `context.Context` to all of the content related Page API. Turns out it wasn't strictly needed for this particular feature, but it will
soon become usefil, e.g. in #9339 .
Closes #10711
Updates #9339
Updates #10725
2023-02-21 17:56:41 +01:00
Bjørn Erik Pedersen
19e9605629
dos: Regen CLI docs
2023-01-17 12:52:53 +01:00
Bjørn Erik Pedersen
80e8bd3b72
docs: Regen docshelper
2023-01-17 12:52:08 +01:00
Bjørn Erik Pedersen
b661132e0a
Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382'
2023-01-17 12:51:46 +01:00
Bjørn Erik Pedersen
6a579ebac3
Add fill HTTP Response info into .Data in resources.GetRemote
...
See #10604
2023-01-16 14:44:15 +01:00
Bjørn Erik Pedersen
10bb29d7f3
docs: Regen docs helper JSON
2022-12-23 10:15:48 +01:00
Septs
3a216186b2
resource/page: Add Page.Ancestors
...
Fixes #10567
2022-12-23 10:14:53 +01:00
Bjørn Erik Pedersen
59af05cabc
Add HUGO_PUBLISHDIR to the Node environment
...
So you can do `process.env.HUGO_PUBLISHDIR` in your `postcss.config.js` to figure out where Hugo publishes
its files.
Note that the value will always be an absolute file path and will point to a directory on disk even when running `hugo server` in memory mode.
If you write to this folder from PostCSS when running the server, you could run the server with one of these flags:
```
hugo server --renderToDisk
hugo server --renderStaticToDisk
```
Fixes #10554
2022-12-22 12:43:50 +01:00
Bjørn Erik Pedersen
9a215d6950
Merge commit '41bc6f702aa54200530efbf4267e5c823df3028d'
2022-12-20 11:04:41 +01:00
Bjørn Erik Pedersen
330fa89411
modules: Adjust watch logic vs workspace use definitions
2022-12-19 20:17:33 +01:00
Bjørn Erik Pedersen
c9f2fa2663
Merge commit 'da670c38ee63a7fef25e2b9f42519232055b60dc'
2022-12-06 10:42:36 +01:00
Bjørn Erik Pedersen
de9c5542ca
docs: Add basic doc for wrapStandAloneImageWithinParagraph etc.
...
See #10492
2022-12-05 16:50:47 +01:00
Bjørn Erik Pedersen
e93138dfdb
dartsass: Add sourceMapIncludeSources option
2022-12-05 16:36:45 +01:00
Bjørn Erik Pedersen
ef518485ce
Merge commit 'da16527896d3087585c5e758083ea498dcabc2c3'
2022-12-02 09:19:23 +01:00
Bjørn Erik Pedersen
75f782a5a7
docs: Regen docs helper
2022-11-24 15:17:22 +01:00
Bjørn Erik Pedersen
0a019a1a59
docs: Regen CLI docs
2022-11-17 16:19:22 +01:00
Bjørn Erik Pedersen
9f7fb0a73b
docs: Regenerate docs helper
2022-11-17 16:16:53 +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
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