mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
f96384a3b5
39af43ef1Update postprocess.md3ec192d08Update multilingual.md7fc7bf862Add a note about some changes in 0.112.0742510ae8Fix ordinal abbrev examplefe557031aCorrect spelling for 'GitHub' and 'GitLab' (#2082)84a059b9aFix typo in hosting-on-azure.md (#2080)3383786feAdd i18n to list of directories affected by ignoreFiles5bfb95234Update 404.md (#2076)87545a4fdUpdate hosting-on-cloudflare-pages.md (#2078)aa5952c28Add default module mount to example (#2075)ced5292c8Align permalinks examples (#2073)77b5009fdFix typoc79319a6aClarify description of baseURLe93a9807bFix typo in frontmatter description (#2071)05fe9163aRemove erroneous statementaa59ef383docs: Remove note about hugo server not using 404 (#2068)4a387a6b8Clarify findRESubmatch (#2065)47a9181b5Clarify findRE, replaceRE, and findRESubmatch (#2064)e5eedbb5eUpdate theme5d392c3d4Clarify pageRef menu property (#2059)a557b0ebfFix typos on Configure Hugo page (#2058)17ef283e6Clarify module.replacements wording (#2052)5db4aa421Fixing broken links (#2057)9afa0c2faFix broken links (#2055)49b981b1fCorrect repo URL for migration tool (contentful.com) (#2056)969c24c16Remove duplicate content0b91e7676Revert "Delete duplicate content"3229e79f2Delete duplicate contentec4eddb98Fix typo6509159d5Describe snap package strict confinement (#2050)1589bcdb7Remove hugo.Generator admonition (#2048)7e553d11bAdd example48bec0335Replace blockquotes with admonitions where appropriate (#2043)98226fe61Remove orphaned param fron admonition calls (#2042)2a37a1d21Clarify cast functions (#2041)03fd1d404Fix typo1898013efFix typos944e27430Replace output shortcode calls0c66fb055Add example of shortcode calls within sample codef25a79c69Replace tip and warning shortcode calls3afac22fcRefactor code shortcodead65d2931Clarify seq function59f8a1f48Clarify title function47535dc87Cleanup hasPrefix hasSuffix7bee3e4c1Cleanup action delimiterscc96070f0Correct functions archetypeffe5d39b9Remove duplicate shortcodes075c9f3feRemove old todosbc3ec033cFront matter cleanup (#2039)928b94505Add code fence types (#2038)856fa293cDocument .File.Filename (#2037)0988c4a42Update output-formats.md (#2036)289da5658Change findRe to findRE1e50f0583Update themef90fb1bf5Improve type formatting (#2032)7785fa7d9Use code-toggle shortcode where appropriatef11cabf37Add space after and before action delimitersac333c795Replace erroneous use of nocopy shortcode param064896c06Use bool param when calling code-togglefb33bf59bUpdate code-toggle shortcode6ddeab4f8Add missing go-html-template code fence type (#2030)1bba4cefbFix links (#2029)77f4d6c32Link destination cleanup (#2028)fc0ecc027Improve breadcrumb example (#2026)6148be2deUpdate the breadcrumb navigation example (#2025)6ebb37b1bClarify sort function (#2024)31269bad9Add Winget installation method (#1988)d6c5f940eResource methods: add signatures, minor improvements (#2017)d2e594cbcModify inner variable shortcode-template explanation (#1985)a54927a7fUpdate GitHub Pages starter workflow (#2023)2964c2d44Remove orphaned static files (#2022)97e5567ccComplete documentation on '.Scratch' and '.Store' (#2016)fa7b2e299Fix typobdce77c57Remove literal from example menu templatec0f23b216Correct and improve menu documentation (#2010)464368fd9Document .Page.Store (#2011)a3d7c4a3aImprove urls.Parse function (#2012)d2cec3776Clarify postcss config option (#2013)eb3003fefFixed typo (#2007)90c82d7eaClarify mermaid markdown example (#2004)1b11dcd5cdocs(Diagrams): Update mermaid import mechanism (#1967)4aceb6855Fingerprinting, asset management: minor improvements (#2003)bcbc519bbresources.GetRemote: minor improvement (#2002)d54185befClarify markdownify behavior (#1999)afb582a80Clarify usage of slug in front matter (#1998)f71985315Update hasSuffix.md29ad622a3netlify: Hugo 0.111.3adf223eccMerge branch 'tempv0.111.3'06858c646docs: Improve examples of variadic math functions8b656994etpl/math: Allow multi numbers in add, sub, mul, div, min and max2a38c4046tpl: Add hasSuffix alias4e0b98d54switch transfers to workers11651ac0fcustomize parallel transfer count142f5da81Update GitHub hosting instructions (#1991)ad7901d2fnetlify: Hugo 0.111.20651a76e0add headings to distinguish render hook context paramsd96d75be4netlify: Hugo 0.111.1226cb9e3aAdd a paragraph about the new page template function4c0157a49Add .Fragments docs6c78c0679netlify: Bump to Hugo 0.111.07b11c24cfMerge branch 'feat/related-fragments'615d18ef8Add Related fragments configa36449b0ccods: Regen docs helper0272fa45fMerge commit '336622d5e7afd9334cd2de7150d4f16bdf7c24f9'c5a962b93related: Add config option cardinalityThresholdf91677377docs: Another fix related docs example17aa939eadocs: Fix related docs example12c449150Merge commit 'cf591b7c0c598d34896709db6d28598da37e3ff6'cb998b3d6Add page fragments support to Related git-subtree-dir: docs git-subtree-split:39af43ef11
586 B
586 B
title, description, categories, menu, keywords, signature, relatedfuncs
| title | description | categories | menu | keywords | signature | relatedfuncs | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| strings.Count | Returns the number of non-overlapping instances of a substring within a string. |
|
|
|
|
If SUBSTR is an empty string, this function returns 1 plus the number of Unicode code points in STRING.
| Example | Result |
|---|---|
{{ "aaabaab" | strings.Count "a" }} |
5 |
{{ "aaabaab" | strings.Count "aa" }} |
2 |
{{ "aaabaab" | strings.Count "aaa" }} |
1 |
{{ "aaabaab" | strings.Count "" }} |
8 |