From 31727be2e5b5babc328492e9ffde11d98a92847f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 9 Aug 2024 19:34:13 +0200 Subject: [PATCH 1/3] docs: Regen docshelper --- data/docs.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/data/docs.yaml b/data/docs.yaml index eecf2041e..e399426b6 100644 --- a/data/docs.yaml +++ b/data/docs.yaml @@ -978,6 +978,9 @@ config: images: dir: :resourceDir/_gen maxAge: -1 + misc: + dir: :cacheDir/:project + maxAge: -1 modules: dir: :cacheDir/modules maxAge: -1 @@ -2442,9 +2445,7 @@ tpl: EchoParam returns the value in the collection c with key k if is set; otherwise, it returns an empty string. Deprecated: Use the index function instead. - Examples: - - - '{{ echoParam .Params "langCode" }}' - - en + Examples: [] First: Aliases: - first @@ -4673,6 +4674,11 @@ tpl: { "title": "Hello World" } + ToMath: + Aliases: null + Args: null + Description: "" + Examples: null Unmarshal: Aliases: - unmarshal From 1efcbcddb27e242498fe638060541ee902f0ac7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 11 Aug 2024 12:48:30 +0200 Subject: [PATCH 2/3] tpl/transform: Make Plainify and ToMath return template.HTML None of these are useful as plain strings in the templates, which forces the users to do `transform.Plainify "foo" | safeHTML`. If people have trust issues with the output of these functions, they need to just stop using them. Closes #8732 --- content/en/functions/transform/Plainify.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/functions/transform/Plainify.md b/content/en/functions/transform/Plainify.md index 040145170..681d41f72 100644 --- a/content/en/functions/transform/Plainify.md +++ b/content/en/functions/transform/Plainify.md @@ -6,7 +6,7 @@ keywords: [] action: aliases: [plainify] related: [] - returnType: string + returnType: template.HTML signatures: [transform.Plainify INPUT] aliases: [/functions/plainify] --- From 877e1bfcd67ae3fa397b12f8903fc4d3baa53dba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sat, 17 Aug 2024 15:16:09 +0200 Subject: [PATCH 3/3] Add config options page.nextPrevSortOrder/nextPrevInSectionSortOrder See #12776 --- data/docs.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/docs.yaml b/data/docs.yaml index e399426b6..7ac76ee39 100644 --- a/data/docs.yaml +++ b/data/docs.yaml @@ -1600,6 +1600,9 @@ config: term: - html - rss + page: + nextPrevInSectionSortOrder: desc + nextPrevSortOrder: desc paginate: 0 paginatePath: "" pagination: @@ -1784,6 +1787,8 @@ config_helpers: _merge: shallow outputs: _merge: none + page: + _merge: none pagination: _merge: none params: