mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 13:54:53 -04:00
Update transform.Unmarshal.md (#2105)
Fixes example to use correct method to fetch remote XML.
This commit is contained in:
parent
92657177a4
commit
2652da8d41
@ -61,7 +61,7 @@ To get the contents of `<title>` in the document below, you use `{{ .message.tit
|
||||
The following example lists the items of an RSS feed:
|
||||
|
||||
```go-html-template
|
||||
{{ with resources.Get "https://example.com/rss.xml" | transform.Unmarshal }}
|
||||
{{ with resources.GetRemote "https://example.com/rss.xml" | transform.Unmarshal }}
|
||||
{{ range .channel.item }}
|
||||
<strong>{{ .title | plainify | htmlUnescape }}</strong><br />
|
||||
<p>{{ .description | plainify | htmlUnescape }}</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user