From 556871b824f7379060b98098db11b89fee916569 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sun, 27 Oct 2024 01:59:07 +0800 Subject: [PATCH] =?UTF-8?q?Docs:=20=E5=A2=9E=E5=8A=A0=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E6=96=87=E6=A1=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TODO 中午翻译 --- .../related/featured-image.webp | Bin 0 -> 24256 bytes .../content-management/related/index.md | 121 +++++++++++++++++ .../content-management/related/index.md | 126 ++++++++++++++++++ 3 files changed, 247 insertions(+) create mode 100644 content/en/documentation/content-management/related/featured-image.webp create mode 100644 content/en/documentation/content-management/related/index.md create mode 100644 content/zh-cn/documentation/content-management/related/index.md diff --git a/content/en/documentation/content-management/related/featured-image.webp b/content/en/documentation/content-management/related/featured-image.webp new file mode 100644 index 0000000000000000000000000000000000000000..fbe9eec514fb7675bb8025ea3dd172195b5f4f2c GIT binary patch literal 24256 zcmdqH^Rwt&umyN*+qP}nHt(@*pL=ZEwr$(CZJTqy_g>Y^-!Q3U@BKs4)#*-ptzL*oSP)0#Q5D)+WkUft80D`4NbA?<)q)*?F zLT9+;nkBSfAObYRt}c!Y5OBFSdCDsmb^aGpLeDIpizI#4@Hu@`v4&>b8LjGDt0Bs3 z{DJ#D_xJzL`)_Y¨*F=lB(aWC%i#DWQ(dXA)C@kAT|z`xiMDChzJ*bf0^15&kt zEdcRl%jC;8u+r7!Exbe2A%|Poe!MvgjqCqyuRaqH{$BAT zF6~Vtzu;HcWx#Lqt>q8rd-3b>^!M|>P<{e9H~JoZYF!q3GW*EA@@w$}{Zjowf9)0d zxcxM{&kX(9WaWEjKZrg3IQ)6+-p%j~@|FFj{!V@EflvT{e|?2t?^T^`dK7+>f6nRS zee*@;o4o@4TKvK<1oP1wc)@sB`u(@<@!yR8{{Ha8@OK%I_r5^~I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J@%{@JhAkO*^QL3PyzI(u#e&p6?|R^T;F91phuB0dd4dogOKA>gd89NPFI<=Rgc@F`HGUKe5$@BLfK z3*ER+SDP!y(VtSBYUG5*@BjeEJ!7BiK7kI%^kH9dhBxH|Oz`X@ zxNt2N2fCkd{gtSnU4i+&VkBL|a&TaMK83AR&NJpB+rBuwr#yvY-tlmVG2F%>3JnD1 zUJS4XP{XpQZJ@vh7MAmMZVzHWG6+^eod3X)L)JB?ok1SwpQK!~>brFJnvz+%l1a*z zr(_W1MIC+u)c+b{`>>3u(?CS>jCMh8nFh2&Hh44e*gpjlpbC>_9w9LOEg|H4cKasl zdjkNDE1*oUN_?ddmX;cO*Bhb8(LK1QD|J@lOwqjqXq|5ZhEZ;aO8uuExyxH#q1S(r zt0M9-ZM1_Ez!zxKMh^WYuP%%IvBka~PY&UcotG$BVpTs!;7d=;GO)_T?n2s2c z7XgR@yPJml3eHKUVs6=0%UG7=bDH!JK=>8hooQm+;6-iVD?F07W!iTZAicAe$Cy%^ z#2)mf+PI!W-pZm9uu-|HI!DSdl|>P>b(sRY zVZcB36!0uSe?zq*f>NQzDGjaC>Mi?k)&LKvX{whbY*k>i5kYJ^LvN|7BEhC_j(lr6 zlZIy}@soV#EwXAc0_R+3K#w%fFSdg_iAddvzCce8ZnB2;5YNYV8)(EsDo+xkkwFtp zL9>;?)oIR$vhuW(AE*esx6`aCSg;OjUG#kzb^S4xI?z{**8g2&$d@HCzBYP;^;qY= zxGCvA6#@bzBBB-uvK?KtQRqhqnxC-UgHri1%`QL)#){hj2inF`9%r|QYTw*jlyjFy F003v40G|K= literal 0 HcmV?d00001 diff --git a/content/en/documentation/content-management/related/index.md b/content/en/documentation/content-management/related/index.md new file mode 100644 index 0000000..c4dc6cf --- /dev/null +++ b/content/en/documentation/content-management/related/index.md @@ -0,0 +1,121 @@ +--- +title: Related content +date: 2024-10-27T01:05:43+08:00 +description: List related content in "Related content" sections. +type: posts +tags: + - Related + - Content + - Advanced +categories: + - Documentation +collections: + - Content Management +resources: + - name: featured-image + src: featured-image.webp +--- + +List related content in "Related content" sections. + + + +Hugo uses a set of factors to identify a page's related content based on front matter parameters. This can be tuned to the desired set of indices and parameters or left to Hugo's default [Related Content configuration](#configure-related-content). + +## Enable related Content + +To enable related content, set the `page.related.enable` parameter to `true` in the site configuration file. + +```toml +[params] + [params.page] + [params.page.related] + enable = true + count = 5 +``` + +> [!NOTE] +> If you want to hide a page from the related posts, set the `hiddenFromRelated` parameter to `true` in the page's front matter. + +## Configure related content {#configure-related-content} + +Hugo provides a sensible default configuration of Related Content, but you can fine-tune this in your configuration, on the global or language level if needed. + +> This section may be outdated. Refer to the [Related content | Hugo][hugo-related] for the latest information. + +### Default configuration + +Without any `related` configuration set on the project, Hugo’s Related Content methods will use the following. + +```toml {data-open=true} +[related] + includeNewer = false + threshold = 80 + toLower = false + [[related.indices]] + applyFilter = false + cardinalityThreshold = 0 + name = 'keywords' + pattern = '' + toLower = false + type = 'basic' + weight = 100 + [[related.indices]] + applyFilter = false + cardinalityThreshold = 0 + name = 'date' + pattern = '' + toLower = false + type = 'basic' + weight = 10 + [[related.indices]] + applyFilter = false + cardinalityThreshold = 0 + name = 'tags' + pattern = '' + toLower = false + type = 'basic' + weight = 80 +``` + +Custom configuration should be set using the same syntax. + +> [!TIP] +> If you add a `related` configuration section, you need to add a complete configuration. It is not possible to just set, say, `includeNewer` and use the rest from the Hugo defaults. + +### Top level configuration options + +threshold +: (`int`) A value between 0-100. Lower value will give more, but maybe not so relevant, matches. + +includeNewer +: (`bool`) Set to `true` to include **pages newer than the current page** in the related content listing. This will mean that the output for older posts may change as new related content gets added. + +toLower +: (`bool`) Set to `true` to lower case keywords in both the indexes and the queries. This may give more accurate results at a slight performance penalty. Note that this can also be set per index. + +### Configuration options per index + +name +: (`string`) The index name. This value maps directly to a page parameter. Hugo supports string values (`author` in the example) and lists (`tags`, `keywords` etc.) and time and date objects. + +type +: (`string`) One of `basic`(default) or `fragments`. + +applyFilter +: (`string`) Apply a `type` specific filter to the result of a search. This is currently only used for the `fragments` type. + +weight +: (`int`) An integer weight that indicates how important this parameter is relative to the other parameters. It can be `0`, which has the effect of turning this index off, or even negative. Test with different values to see what fits your content best. + +cardinalityThreshold +: (`int`) If between 1 and 100, this is a percentage. All keywords that are used in more than this percentage of documents are removed. For example, setting this to `60` will remove all keywords that are used in more than 60% of the documents in the index. If `0`, no keyword is removed from the index. Default is `0`. + +pattern +: (`string`) This is currently only relevant for dates. When listing related content, we may want to list content that is also close in time. Setting “2006” (default value for date indexes) as the pattern for a date index will add weight to pages published in the same year. For busier blogs, “200601” (year and month) may be a better default. + +toLower +: (`bool`) See above. + + +[hugo-related]: https://gohugo.io/content-management/related/ diff --git a/content/zh-cn/documentation/content-management/related/index.md b/content/zh-cn/documentation/content-management/related/index.md new file mode 100644 index 0000000..879576d --- /dev/null +++ b/content/zh-cn/documentation/content-management/related/index.md @@ -0,0 +1,126 @@ +--- +title: 相关内容 +date: 2024-10-27T01:05:43+08:00 +description: List related content in "Related content" sections. +type: posts +tags: + - Related + - Content + - Advanced +categories: + - Documentation +collections: + - Content Management +resources: + - name: featured-image + src: featured-image.webp +--- + +> [!help]+ 中文文档翻译 +> 本文尚未翻译完成,欢迎 [参与翻译](https://github.com/hugo-fixit/docs/pulls)。 + +--- + +List related content in "Related content" sections. + + + +Hugo uses a set of factors to identify a page's related content based on front matter parameters. This can be tuned to the desired set of indices and parameters or left to Hugo's default [Related Content configuration](#configure-related-content). + +## Enable related Content + +To enable related content, set the `page.related.enable` parameter to `true` in the site configuration file. + +```toml +[params] + [params.page] + [params.page.related] + enable = true + count = 5 +``` + +> [!NOTE] +> If you want to hide a page from the related posts, set the `hiddenFromRelated` parameter to `true` in the page's front matter. + +## Configure related content {#configure-related-content} + +Hugo provides a sensible default configuration of Related Content, but you can fine-tune this in your configuration, on the global or language level if needed. + +> This section may be outdated. Refer to the [Related content | Hugo][hugo-related] for the latest information. + +### Default configuration + +Without any `related` configuration set on the project, Hugo’s Related Content methods will use the following. + +```toml {data-open=true} +[related] + includeNewer = false + threshold = 80 + toLower = false + [[related.indices]] + applyFilter = false + cardinalityThreshold = 0 + name = 'keywords' + pattern = '' + toLower = false + type = 'basic' + weight = 100 + [[related.indices]] + applyFilter = false + cardinalityThreshold = 0 + name = 'date' + pattern = '' + toLower = false + type = 'basic' + weight = 10 + [[related.indices]] + applyFilter = false + cardinalityThreshold = 0 + name = 'tags' + pattern = '' + toLower = false + type = 'basic' + weight = 80 +``` + +Custom configuration should be set using the same syntax. + +> [!TIP] +> If you add a `related` configuration section, you need to add a complete configuration. It is not possible to just set, say, `includeNewer` and use the rest from the Hugo defaults. + +### Top level configuration options + +threshold +: (`int`) A value between 0-100. Lower value will give more, but maybe not so relevant, matches. + +includeNewer +: (`bool`) Set to `true` to include **pages newer than the current page** in the related content listing. This will mean that the output for older posts may change as new related content gets added. + +toLower +: (`bool`) Set to `true` to lower case keywords in both the indexes and the queries. This may give more accurate results at a slight performance penalty. Note that this can also be set per index. + +### Configuration options per index + +name +: (`string`) The index name. This value maps directly to a page parameter. Hugo supports string values (`author` in the example) and lists (`tags`, `keywords` etc.) and time and date objects. + +type +: (`string`) One of `basic`(default) or `fragments`. + +applyFilter +: (`string`) Apply a `type` specific filter to the result of a search. This is currently only used for the `fragments` type. + +weight +: (`int`) An integer weight that indicates how important this parameter is relative to the other parameters. It can be `0`, which has the effect of turning this index off, or even negative. Test with different values to see what fits your content best. + +cardinalityThreshold +: (`int`) If between 1 and 100, this is a percentage. All keywords that are used in more than this percentage of documents are removed. For example, setting this to `60` will remove all keywords that are used in more than 60% of the documents in the index. If `0`, no keyword is removed from the index. Default is `0`. + +pattern +: (`string`) This is currently only relevant for dates. When listing related content, we may want to list content that is also close in time. Setting “2006” (default value for date indexes) as the pattern for a date index will add weight to pages published in the same year. For busier blogs, “200601” (year and month) may be a better default. + +toLower +: (`bool`) See above. + + +[hugo-related]: https://gohugo.io/content-management/related/