summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/urls.Parse.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/urls.Parse.md')
-rw-r--r--docs/content/en/functions/urls.Parse.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/en/functions/urls.Parse.md b/docs/content/en/functions/urls.Parse.md
index 7709ad8c2..676734210 100644
--- a/docs/content/en/functions/urls.Parse.md
+++ b/docs/content/en/functions/urls.Parse.md
@@ -19,13 +19,13 @@ aliases: []
`urls.Parse` takes a url as input
-```
+```go-html-template
{{ $url := urls.Parse "http://www.gohugo.io" }}
```
and returns a [URL](https://godoc.org/net/url#URL) structure. The struct fields are accessed via the `.` notation:
-```
+```go-html-template
{{ $url.Scheme }} → "http"
{{ $url.Host }} → "www.gohugo.io"
```