mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-19 05:15:03 -04:00
Add emphasis to trim function explanation
This commit is contained in:
parent
f4b1293510
commit
fe78595c89
@ -22,7 +22,7 @@ deprecated: false
|
|||||||
{{ trim "++Batman--" "+-" }} → "Batman"
|
{{ trim "++Batman--" "+-" }} → "Batman"
|
||||||
```
|
```
|
||||||
|
|
||||||
`trim` *requires* the second argument, which tells the function specifically what to remove from the first argument. There is no default value for the second argument, so the following usage will *not* work:
|
`trim` *requires* the second argument, which tells the function specifically what to remove from the first argument. There is no default value for the second argument, so **the following usage will not work**:
|
||||||
|
|
||||||
```
|
```
|
||||||
{{ trim .Inner}}
|
{{ trim .Inner}}
|
||||||
|
@ -19,6 +19,5 @@
|
|||||||
</div>
|
</div>
|
||||||
{{partial "content-footer.html" . }}
|
{{partial "content-footer.html" . }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</main>
|
</main>
|
||||||
{{ end }}
|
{{ end }}
|
@ -1,5 +1,5 @@
|
|||||||
{{$kind := .Kind}}
|
{{$kind := .Kind}}
|
||||||
<div class="all-contents">
|
<div class="all-contents">
|
||||||
{{range .Data.Pages}}
|
{{range .Data.Pages}}
|
||||||
<!-- if statement checks for sitelink. sitelink: is a field in front matter of /content/showcase/*.md) -->
|
<!-- if statement checks for sitelink. sitelink: is a field in front matter of /content/showcase/*.md) -->
|
||||||
<a {{with .Params.sitelink }}href="{{.}} "target="_blank"{{else}}href="{{.Permalink}}"{{end}}>
|
<a {{with .Params.sitelink }}href="{{.}} "target="_blank"{{else}}href="{{.Permalink}}"{{end}}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user