From 961639dfa40118672147a4315523e29d10a76645 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 16 Apr 2024 08:31:10 -0700 Subject: [PATCH] Document additional changes in v0.125.0 --- .../strings/Diff/diff-screen-capture.png | Bin 0 -> 7290 bytes content/en/functions/strings/Diff/index.md | 33 ++++++++++++++ content/en/methods/page/RenderShortcodes.md | 7 +-- content/en/methods/page/Sitemap.md | 15 +++++-- content/en/render-hooks/_common/_index.md | 13 ++++++ content/en/render-hooks/_common/pageinner.md | 42 ++++++++++++++++++ content/en/render-hooks/code-blocks.md | 12 ++++- content/en/render-hooks/headings.md | 12 ++++- content/en/render-hooks/images.md | 12 ++++- content/en/render-hooks/links.md | 12 ++++- content/en/templates/sitemap-template.md | 14 +++--- data/docs.yaml | 7 ++- 12 files changed, 158 insertions(+), 21 deletions(-) create mode 100644 content/en/functions/strings/Diff/diff-screen-capture.png create mode 100644 content/en/functions/strings/Diff/index.md create mode 100644 content/en/render-hooks/_common/_index.md create mode 100644 content/en/render-hooks/_common/pageinner.md diff --git a/content/en/functions/strings/Diff/diff-screen-capture.png b/content/en/functions/strings/Diff/diff-screen-capture.png new file mode 100644 index 0000000000000000000000000000000000000000..62baa45630a97cc15d31bb811243679905da9695 GIT binary patch literal 7290 zcmZu$cQjnxyOyE{i4qb-XVmD1QAZnXFe8KvqQ-U6OBu4rsngAgMusg6TK-*FnB!;Rt`t7g`2I1zm zzB~s3gtR||mJJW%YvmM;CQXOyvjG}9kFrJu-R)9zL1H2xF}o6^ItZW}r&pzieC{!v z=aVwLW$2p^5Q0m$`$;Ov9uZd~bwMiGF!A@uFll))_2)<9+35PIOFfO^P@mzsg{&^T zpO9>`k+CJ%7!lgKN!-dZ1Bpp$6OTH?F^88UTg^hi2D$a@LCv!T$HwcsW!T6i-?N|NzJz{URZ`e zaG~0^x@vddW;+D?7zh1XRx}0+T=3Z;4Lp=%4XFXU&3_7QT4+MMkmh2p$Y$ zI|ELsSD`_Pf|z@fkWkbA^IRL54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N-R}j_v9;0{g}3N7|jW? zQM&0FG}^k6(RRV}k%he_PX`^`#e#C5X6qLjY{hhxWKqVHQ83fVU z=m;aS`Y6C=yrvsjc>ycy&@Mz}L8H-gCJGTrvI%}Krr?m=&)9&Q0;O$+4@Y7(?n3Tm zoy5I{Ur>7#dl6iBeww%FbN^Th-g~P>0=Zu0!jnJEr5cMVWZp`5t_Y;?nGkiB70AT6 z;F@;R7t&#;LZ@8M(j#T=dum#}o&UrATLlt2O-61-K_}L3dKXVMZa$o4rky7J7^`E8 z#w%hwC}5F;_bte;5w#&}QojZBY)0QSH0XK03B?3I z2m{hH7h)(eB;2&M+U&=GTv-bGtHOpggTmxw63)+#F-|KvR@y!N3T^S?jT-yOsyjvl z;5fDWItKUcZo9HdXBx(Bh#XR|*t1zkVk5U^Om{e|1~+#8(NOUKXJ_YcNmCZLp^A`) z##6BTAz5a#CxG2wd+)dBt>^VY5;}U7znCi4CyG(OO-q2)m*vY zs36f2DPcC5$R`fDVa<1Fum7NLwz0ypc_&GB7!NB%n0(q9`e*TB0h+9o&xv8#e}g{_ zO+;HyW5F%>S%G_Ka5F{&HQb8Z_ zeN^lzh(Z=H^)KuDt0GiWHG5cC6MDZj>>OU1SfJ#?l9d#x>uV)f?v(eCe~9chtrCGbnlZ{;5vXYBXZ}XW8L2ZPv;o!YTHzq9Cd-~%)>$M4zEac`yA2$R z|2h2&cBsi1aq%#pjOhhCUZWvejLXfg?C6l*6bN)WRO^ft{%kT>VBn3RBRkbwlYH>R zj6v+8%)+mjPH6^d=V!tkVBk-M6dH<+oqvhqQ*{yk`)V!c;iohu%}} + +Use `strings.Diff` to compare two strings and render a highlighted diff: + +```go-html-template +{{ $want = ` +

The product of 6 and 7 is 42.

+

The product of 7 and 6 is 42.

+`}} + +{{ $got = ` +

The product of 6 and 7 is 42.

+

The product of 7 and 6 is 13.

+`}} + +{{ $diff := strings.Diff "want" $want "got" $got" }} +{{ transform.Highlight $diff "diff" }} +``` + +Rendered: + +![sreen capture](diff-screen-capture.png) diff --git a/content/en/methods/page/RenderShortcodes.md b/content/en/methods/page/RenderShortcodes.md index d822bc1e1..a4120f69a 100644 --- a/content/en/methods/page/RenderShortcodes.md +++ b/content/en/methods/page/RenderShortcodes.md @@ -22,11 +22,12 @@ Use this method in shortcode templates to compose a page from multiple content f For example: {{< code file=layouts/shortcodes/include.html >}} -{{ $p := site.GetPage (.Get 0) }} -{{ $p.RenderShortcodes }} +{{ with site.GetPage (.Get 0) }} + {{ .RenderShortcodes }} +{{ end }} {{< /code >}} -Then in your Markdown: +Then call the shortcode in your Markdown: {{< code file=content/about.md lang=md >}} {{%/* include "/snippets/services.md" */%}} diff --git a/content/en/methods/page/Sitemap.md b/content/en/methods/page/Sitemap.md index 08ff3f5d0..d6159267d 100644 --- a/content/en/methods/page/Sitemap.md +++ b/content/en/methods/page/Sitemap.md @@ -14,15 +14,22 @@ Access to the `Sitemap` method on a `Page` object is restricted to [sitemap temp ## Methods -ChangeFreq -: (`string`) How frequently a page is likely to change. Valid values are `always`, `hourly`, `daily`, `weekly`, `monthly`, `yearly`, and `never`. Default is "" (change frequency omitted from rendered sitemap). +changefreq +: (`string`) How frequently a page is likely to change. Valid values are `always`, `hourly`, `daily`, `weekly`, `monthly`, `yearly`, and `never`. With the default value of `""` Hugo will omit this field from the sitemap. See [details](https://www.sitemaps.org/protocol.html#changefreqdef). ```go-html-template {{ .Sitemap.ChangeFreq }} ``` -Priority -: (`float`) The priority of a page relative to any other page on the site. Valid values range from 0.0 to 1.0. Default is -1 (priority omitted from rendered sitemap). +disable {{< new-in 0.125.0 >}} +: (`bool`) Whether to disable page inclusion. Default is `false`. Set to `true` in front matter to exclude the page. + +```go-html-template +{{ .Sitemap.Disable }} +``` + +priority +: (`float`) The priority of a page relative to any other page on the site. Valid values range from 0.0 to 1.0. With the default value of `-1` Hugo will omit this field from the sitemap. See [details](https://www.sitemaps.org/protocol.html#priority). ```go-html-template {{ .Sitemap.Priority }} diff --git a/content/en/render-hooks/_common/_index.md b/content/en/render-hooks/_common/_index.md new file mode 100644 index 000000000..4328d4d14 --- /dev/null +++ b/content/en/render-hooks/_common/_index.md @@ -0,0 +1,13 @@ +--- +cascade: + _build: + list: never + publishResources: false + render: never +--- + + diff --git a/content/en/render-hooks/_common/pageinner.md b/content/en/render-hooks/_common/pageinner.md new file mode 100644 index 000000000..05231c697 --- /dev/null +++ b/content/en/render-hooks/_common/pageinner.md @@ -0,0 +1,42 @@ +--- +# Do not remove front matter. +--- + +## PageInner + +{{< new-in 0.125.0 >}} + +The primary use case for `PageInner` is to resolve links and [page resources] relative to an included `Page`. For example, create an "include" shortcode to compose a page from multiple content files, while preserving a global context for footnotes and the table of contents: + +{{< code file=layouts/shortcodes/include.html >}} +{{ with site.GetPage (.Get 0) }} + {{ .RenderShortcodes }} +{{ end }} +{{< /code >}} + +Then call the shortcode in your Markdown: + +{{< code file=content/posts/p1.md >}} +{{%/* include "/posts/p2" */%}} +{{< /code >}} + +Any render hook triggered while rendering `/posts/p2` will get: + +- `/posts/p1` when calling `Page` +- `/posts/p2` when calling `PageInner` + +`PageInner` falls back to the value of `Page` if not relevant, and always returns a value. + +{{% note %}} +The `PageInner` method is only relevant for shortcodes that invoke the [`RenderShortcodes`] method, and you must call the shortcode using the `{{%/*..*/%}}` notation. + +[`RenderShortcodes`]: /methods/page/rendershortcodes/ +{{% /note %}} + +As a practical example, Hugo's embedded link and image render hooks use the `PageInner` method to resolve markdown link and image destinations. See the source code for each: + +- [Embedded link render hook]({{% eturl render-link %}}) +- [Embedded image render hook]({{% eturl render-image %}}) + +[`RenderShortcodes`]: /methods/page/rendershortcodes/ +[page resources]: /getting-started/glossary/#page-resource diff --git a/content/en/render-hooks/code-blocks.md b/content/en/render-hooks/code-blocks.md index d6c111b35..4fa86b8cc 100755 --- a/content/en/render-hooks/code-blocks.md +++ b/content/en/render-hooks/code-blocks.md @@ -76,7 +76,15 @@ Code block render hook templates receive the following [context]: ###### Page -(`page`) A reference to the page containing the code block. +(`page`) A reference to the current page. + +###### PageInner + +{{< new-in 0.125.0 >}} + +(`page`) A reference to a page nested via the [`RenderShortcodes`] method. [See details](#pageinner). + +[`RenderShortcodes`]: /methods/page/rendershortcodes ###### Position @@ -140,3 +148,5 @@ Hugo includes an [embedded code block render hook] to render [GoAT diagrams]. [embedded code block render hook]: {{% eturl render-codeblock-goat %}} [GoAT diagrams]: /content-management/diagrams/#goat-diagrams-ascii + +{{% include "/render-hooks/_common/pageinner.md" %}} diff --git a/content/en/render-hooks/headings.md b/content/en/render-hooks/headings.md index 9c025d664..7ed7e011f 100755 --- a/content/en/render-hooks/headings.md +++ b/content/en/render-hooks/headings.md @@ -37,7 +37,15 @@ title = true ###### Page -(`page`) A reference to the page containing the heading. +(`page`) A reference to the current page. + +###### PageInner + +{{< new-in 0.125.0 >}} + +(`page`) A reference to a page nested via the [`RenderShortcodes`] method. [See details](#pageinner). + +[`RenderShortcodes`]: /methods/page/rendershortcodes ###### PlainText @@ -67,3 +75,5 @@ To add an anchor link to the right of each heading: # {{< /code >}} + +{{% include "/render-hooks/_common/pageinner.md" %}} diff --git a/content/en/render-hooks/images.md b/content/en/render-hooks/images.md index 8300143e9..08c9a2dc3 100755 --- a/content/en/render-hooks/images.md +++ b/content/en/render-hooks/images.md @@ -55,7 +55,15 @@ block = true ###### Page -(`page`) A reference to the page containing the image. +(`page`) A reference to the current page. + +###### PageInner + +{{< new-in 0.125.0 >}} + +(`page`) A reference to a page nested via the [`RenderShortcodes`] method. [See details](#pageinner). + +[`RenderShortcodes`]: /methods/page/rendershortcodes ###### PlainText @@ -151,3 +159,5 @@ target = 'assets' {{< /code-toggle >}} Note that the embedded image render hook does not perform image processing. Its sole purpose is to resolve Markdown image destinations. + +{{% include "/render-hooks/_common/pageinner.md" %}} diff --git a/content/en/render-hooks/links.md b/content/en/render-hooks/links.md index e4c875c5c..2e1171660 100755 --- a/content/en/render-hooks/links.md +++ b/content/en/render-hooks/links.md @@ -38,7 +38,15 @@ Link render hook templates receive the following context: ###### Page -(`page`) A reference to the page containing the link. +(`page`) A reference to the current page. + +###### PageInner + +{{< new-in 0.125.0 >}} + +(`page`) A reference to a page nested via the [`RenderShortcodes`] method. [See details](#pageinner). + +[`RenderShortcodes`]: /methods/page/rendershortcodes ###### PlainText @@ -121,3 +129,5 @@ target = 'assets' source = 'static' target = 'assets' {{< /code-toggle >}} + +{{% include "/render-hooks/_common/pageinner.md" %}} diff --git a/content/en/templates/sitemap-template.md b/content/en/templates/sitemap-template.md index 68e31c6c8..64609f0b9 100644 --- a/content/en/templates/sitemap-template.md +++ b/content/en/templates/sitemap-template.md @@ -28,18 +28,21 @@ With a multilingual project, Hugo generates: ## Configuration -Set the default values for [change frequency] and [priority], and the name of the generated file, in your site configuration. +These are the default sitemap configuration values. They apply to all pages unless overridden in front matter. {{< code-toggle config=sitemap />}} changefreq -: How frequently a page is likely to change. Valid values are `always`, `hourly`, `daily`, `weekly`, `monthly`, `yearly`, and `never`. Default is `""` (change frequency omitted from rendered sitemap). +: (`string`) How frequently a page is likely to change. Valid values are `always`, `hourly`, `daily`, `weekly`, `monthly`, `yearly`, and `never`. With the default value of `""` Hugo will omit this field from the sitemap. See [details](https://www.sitemaps.org/protocol.html#changefreqdef). + +disable {{< new-in 0.125.0 >}} +: (`bool`) Whether to disable page inclusion. Default is `false`. Set to `true` in front matter to exclude the page. filename -: The name of the generated file. Default is `sitemap.xml`. +: (`string`) The name of the generated file. Default is `sitemap.xml`. priority -: The priority of a page relative to any other page on the site. Valid values range from 0.0 to 1.0. Default is `-1` (priority omitted from rendered sitemap). +: (`float`) The priority of a page relative to any other page on the site. Valid values range from 0.0 to 1.0. With the default value of `-1` Hugo will omit this field from the sitemap. See [details](https://www.sitemaps.org/protocol.html#priority). ## Override default values @@ -49,6 +52,7 @@ Override the default values for a given page in front matter. title = 'News' [sitemap] changefreq = 'weekly' + disable = true priority = 0.8 {{}} @@ -75,6 +79,4 @@ disableKinds = ['sitemap'] {{}} [`publishDir`]: /getting-started/configuration#publishdir -[change frequency]: -[priority]: [sitemap protocol]: diff --git a/data/docs.yaml b/data/docs.yaml index ad47ac54d..b522ffbef 100644 --- a/data/docs.yaml +++ b/data/docs.yaml @@ -1557,10 +1557,8 @@ config: disqus: disable: false googleAnalytics: - anonymizeIP: false disable: false respectDoNotTrack: false - useSessionStorage: false instagram: disable: false simple: false @@ -1651,6 +1649,7 @@ config: disableInlineCSS: false sitemap: changeFreq: "" + disable: false filename: sitemap.xml priority: -1 social: null @@ -2799,8 +2798,8 @@ tpl: {{ $m.Set "Hugo" "Rocks!" }} {{ $m.Values | debug.Dump | safeHTML }} - |- - map[string]interface {}{ - "Hugo": "Rocks!", + { + "Hugo": "Rocks!" } TestDeprecationErr: Aliases: null