Commit Graph
10536 Commits
Author SHA1 Message Date
Oleksandr Redko ae435ca77d tpl: Add math.Abs
Fixes #10941.
2023-05-16 18:32:07 +02:00
Joe Mooring f340139f84 Revert "Update syntax-highlighting.md (#10929)" (#10930)
This reverts commit a4fb8dc6bc.
2023-05-06 09:36:29 -07:00
Kirill Bobyrev 917a0e24d2 Update syntax-highlighting.md (#10929) 2023-05-06 07:00:37 -07:00
Joe Mooring 06858c646e docs: Improve examples of variadic math functions 2023-03-12 10:32:01 +01:00
septs 8b656994e5 tpl/math: Allow multi numbers in add, sub, mul, div, min and max 2023-03-11 11:21:08 +01:00
Jonathan Fisher 2a38c40464 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 4e0b98d546 switch transfers to workers 2023-03-07 15:38:26 +01:00
davidejones 11651ac0f8 customize parallel transfer count 2023-03-07 15:38:26 +01:00
Bjørn Erik Pedersen a36449b0cc cods: Regen docs helper 2023-03-01 16:35:23 +01:00
Bjørn Erik Pedersen 0272fa45f2 Merge commit '336622d5e7afd9334cd2de7150d4f16bdf7c24f9' 2023-03-01 11:56:07 +01:00
Nicolas Lelong 6e32d05910 Update quick-start.md (#1984)
Clarify that Windows users are expected to use PowerShell or a Linux shell
2023-02-27 14:51:36 -08:00
JB eddd25ff46 Mermaid: reflect latest docs specifications
MermaidJS now specifies to write chart's markdown within a `pre` HTML tag to improve semantics.
2023-02-27 11:35:33 +01:00
JB b2a23b6f5d Mermaid: switch to ESM import 2023-02-27 11:35:33 +01:00
Bjørn Erik Pedersen 43d83c1312 Update index.md 2023-02-25 16:28:21 +01:00
Bjørn Erik Pedersen c5a962b93c related: Add config option cardinalityThreshold
Fixes #10744
2023-02-23 17:06:22 +01:00
Bjørn Erik Pedersen f916773779 docs: Another fix related docs example 2023-02-23 11:09:55 +01:00
Bjørn Erik Pedersen 17aa939ea7 docs: Fix related docs example 2023-02-23 10:54:30 +01:00
Bjørn Erik Pedersen 12c4491506 Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6' 2023-02-23 07:52:04 +01:00
Bjørn Erik Pedersen cb998b3d6f 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
Joe Mooring 36dd5483fb Clarify placement of 404 template 2023-02-20 17:57:24 -08:00
Joe Mooring 6f0a5f3f0f Update urls.Parse.md 2023-02-19 13:34:08 -08:00
Joris Roovers c8070e5787 Remove reference to Internet Explorer conditional comments (#1975)
The Internet Explorer conditional comments example was removed in 8e3f9ca64b
2023-02-19 13:33:12 -08:00
Joe Mooring 3e3458f09d Describe default source map behavior for js.build (#1974)
Closes #1973
2023-02-18 15:59:07 -08:00
Kiran Castellino 08c9ed09a9 Simplify ordinal abbreviation example... (#1970)
Simplify ordinal abbreviation example
2023-02-14 17:12:10 -08:00
Jakub Mikulas b5aa8d598e docs(markdownify): mention a context limitation (#1968) 2023-02-09 06:49:26 -08:00
Max EfremovandJoe Mooring 596af47f58 Fixing typo in configuration.md doc (#1966)
Co-authored-by: Joe Mooring <joe@mooring.com>
2023-02-07 20:46:31 -08:00
Olivér Falvai c47cadfcbd Fix hardWraps config spelling (#1964) 2023-02-03 13:03:47 -08:00
Joe Mooring 5739a174ee Add detail to tabWidth highlighting option 2023-01-31 18:48:44 -08:00
Paolo Mainardi 73a4bcd1f4 doc: Add hugo-lyra search engine (#1959)
* doc: Add hugo-lyra search engine
* Fix capitalization
2023-01-31 14:11:08 -08:00
Joe Mooring 6cc9ebdfd8 Update uniq function example (#1963) 2023-01-30 11:50:25 -08:00
Joe Mooring 686a65cf69 Update uniq.md 2023-01-30 08:37:49 -08:00
Joe Mooring 096f794d0c Update uniq.md 2023-01-30 08:37:20 -08:00
Christian Oliff 914ca0c387 remove version from SVG example (#1957)
version is deprecated and is not needed

REF: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/version
2023-01-29 18:23:25 -08:00
Bjørn Erik Pedersen 58347d41f3 Update theme 2023-01-24 14:58:17 +01:00
aaron 7c806371f6 Fix 404 error for CloudCannon community learn docs (#1955) 2023-01-21 10:02:30 -08:00
Bjørn Erik Pedersen 58e42b03dc Update theme 2023-01-20 19:51:51 +01:00
Bjørn Erik Pedersen fd0385ee20 Update theme 2023-01-19 11:36:03 +01:00
Bjørn Erik Pedersen 513b7a43aa Update findRe.md 2023-01-18 09:36:25 +01:00
Bjørn Erik Pedersen 4d39137ef9 Update configuration.md 2023-01-18 09:29:46 +01:00
Bjørn Erik Pedersen b1c3b58a74 Update configuration.md 2023-01-18 09:29:06 +01:00
Bjørn Erik Pedersen f827cce8d8 Update configuration.md 2023-01-18 09:27:46 +01:00
Bjørn Erik Pedersen 3d72ed8fb8 netlify: Hugo 0.110.0 2023-01-17 14:23:16 +01:00
Bjørn Erik Pedersen e6f969c872 Merge branch 'feat/config-rename' 2023-01-17 14:22:28 +01:00
Bjørn Erik Pedersen 4c0b5a0b53 dos: Regen CLI docs 2023-01-17 12:52:53 +01:00
Bjørn Erik Pedersen 05d9db7055 docs: Regen docshelper 2023-01-17 12:52:08 +01:00
Bjørn Erik Pedersen f73bdb6e58 Merge commit 'ef6f101e75256c3bb88a6f1f3b5c1273bf8d7382' 2023-01-17 12:51:46 +01:00
Bjørn Erik Pedersen e83141f88d Format config 2023-01-17 12:12:37 +01:00
Bjørn Erik Pedersen 4cadf795ef Rename config.toml -> hugo.toml 2023-01-17 12:11:34 +01:00
Bjørn Erik Pedersen c8aa8617f1 Move config/_default/config.toml -> config.toml
I will do a new rename in a minute, but my take on this now is that:

* Every site should have a hugo.toml (or yaml,json) file.
* In most simple setups, I would limit the use of the /config folder to environment specific things.
2023-01-17 12:09:45 +01:00
Bjørn Erik Pedersen 2943c031ab Add fill HTTP Response info into .Data in resources.GetRemote
See #10604
2023-01-16 14:44:15 +01:00