Commit Graph

10565 Commits

Author SHA1 Message Date
Joe Mooring 6ebb37b1b2 Clarify sort function (#2024)
Closes #1365
2023-03-24 15:23:40 -07:00
sitiom 31269bad92 Add Winget installation method (#1988) 2023-03-24 09:59:10 -07:00
Andreas Deininger d6c5f940ed Resource methods: add signatures, minor improvements (#2017) 2023-03-23 20:49:38 -07:00
ginaesps d2e594cbcb Modify inner variable shortcode-template explanation (#1985) 2023-03-23 11:05:56 -07:00
Joe Mooring a54927a7f4 Update GitHub Pages starter workflow (#2023)
Upstream changes:

- https://github.com/actions/starter-workflows/pull/1984
- https://github.com/actions/starter-workflows/pull/1991
2023-03-23 09:41:27 -07:00
Joe Mooring 2964c2d44a Remove orphaned static files (#2022) 2023-03-23 09:39:31 -07:00
Andreas Deininger 97e5567cc1 Complete documentation on '.Scratch' and '.Store' (#2016) 2023-03-21 10:02:38 -07:00
Joe Mooring fa7b2e299f Fix typo 2023-03-20 14:12:54 -07:00
Joe Mooring bdce77c57b Remove literal from example menu template 2023-03-20 06:26:51 -07:00
Joe Mooring c0f23b216e Correct and improve menu documentation (#2010)
This is a substantial rewrite of pages describing:

- Menu entries
- Menu templates
- Menu localization
- Variables and methods available to templates

Closes #1594
Closes #1752
2023-03-20 06:16:24 -07:00
Joe Mooring 464368fd92 Document .Page.Store (#2011)
Closes #1668
2023-03-20 05:43:40 -07:00
Joe Mooring a3d7c4a3a9 Improve urls.Parse function (#2012)
Closes #1977
2023-03-20 05:27:43 -07:00
Joe Mooring d2cec3776d Clarify postcss config option (#2013)
Closes #2005
2023-03-20 04:04:24 -07:00
Somrat eb3003fefc Fixed typo (#2007) 2023-03-18 05:26:40 -07:00
Joe Mooring 90c82d7ea4 Clarify mermaid markdown example (#2004) 2023-03-17 08:34:53 -07:00
Sidharth Vinod 1b11dcd5c5 docs(Diagrams): Update mermaid import mechanism (#1967) 2023-03-17 08:29:24 -07:00
Andreas Deininger 4aceb68551 Fingerprinting, asset management: minor improvements (#2003)
* Fingerprinting, asset management: minor improvements

* Fixing anchor links
2023-03-17 08:18:11 -07:00
Andreas Deininger bcbc519bb9 resources.GetRemote: minor improvement (#2002) 2023-03-16 10:41:30 -07:00
Joe Mooring d54185beff Clarify markdownify behavior (#1999)
Closes #1992
2023-03-15 11:17:21 -07:00
Joe Mooring afb582a800 Clarify usage of slug in front matter (#1998)
Closes #1997
2023-03-15 09:16:53 -07:00
bapps2 f71985315d Update hasSuffix.md 2023-03-12 15:41:47 +01:00
Bjørn Erik Pedersen 29ad622a3c netlify: Hugo 0.111.3 2023-03-12 13:08:58 +01:00
Bjørn Erik Pedersen adf223eccd Merge branch 'tempv0.111.3' 2023-03-12 13:07:48 +01: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
Joe Mooring 142f5da818 Update GitHub hosting instructions (#1991)
Closes #1990
2023-03-06 07:50:04 -08:00
Bjørn Erik Pedersen ad7901d2f3 netlify: Hugo 0.111.2 2023-03-05 13:45:00 +01:00
Jacob Lamont 0651a76e03 add headings to distinguish render hook context params 2023-03-03 18:30:49 +01:00
Bjørn Erik Pedersen d96d75be48 netlify: Hugo 0.111.1 2023-03-02 11:33:28 +01:00
Bjørn Erik Pedersen 226cb9e3a8 Add a paragraph about the new page template function 2023-03-02 11:02:41 +01:00
Bjørn Erik Pedersen 4c0157a49a Add .Fragments docs 2023-03-02 10:35:54 +01:00
Bjørn Erik Pedersen 6c78c06795 netlify: Bump to Hugo 0.111.0 2023-03-01 22:18:28 +01:00
Bjørn Erik Pedersen 7b11c24cfd Merge branch 'feat/related-fragments' 2023-03-01 22:17:43 +01:00
Bjørn Erik Pedersen 615d18ef8d Add Related fragments config 2023-03-01 16:45:13 +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