mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 23:22:11 -05:00
docs: Fix findRE typo
This commit is contained in:
parent
a8e05b1196
commit
76738347d3
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ We can limit the number of matches in that list with a third parameter. Let's sa
|
|||
{{ findRE "<h2.*?>(.|\n)*?</h2>" .Content 1 }}
|
||||
<!-- returns ["<h2 id="#foo">Foo</h2>"] -->
|
||||
|
||||
`findRe` allows us to build an automatically generated table of contents that could be used for a simple scrollspy:
|
||||
`findRE` allows us to build an automatically generated table of contents that could be used for a simple scrollspy:
|
||||
|
||||
{{ $headers := findRE "<h2.*?>(.|\n)*?</h2>" .Content }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue