summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/go-template/template.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/go-template/template.md')
-rw-r--r--docs/content/en/functions/go-template/template.md34
1 files changed, 3 insertions, 31 deletions
diff --git a/docs/content/en/functions/go-template/template.md b/docs/content/en/functions/go-template/template.md
index 053cfcc22..903f1490a 100644
--- a/docs/content/en/functions/go-template/template.md
+++ b/docs/content/en/functions/go-template/template.md
@@ -10,27 +10,7 @@ params:
signatures: ['template NAME [CONTEXT]']
---
-Use the `template` function to execute any of these [embedded templates](g):
-
-- [`disqus.html`]
-- [`google_analytics.html`]
-- [`opengraph.html`]
-- [`pagination.html`]
-- [`schema.html`]
-- [`twitter_cards.html`]
-
-
-
-For example:
-
-```go-html-template
-{{ range (.Paginate .Pages).Pages }}
- <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
-{{ end }}
-{{ template "_internal/pagination.html" . }}
-```
-
-You can also use the `template` function to execute a defined template:
+Use the `template` function to execute a defined template:
```go-html-template
{{ template "foo" (dict "answer" 42) }}
@@ -40,12 +20,12 @@ You can also use the `template` function to execute a defined template:
{{ end }}
```
-The example above can be rewritten using an [inline partial] template:
+The example above can be rewritten using an inline partial template:
```go-html-template
{{ partial "inline/foo.html" (dict "answer" 42) }}
-{{ define "partials/inline/foo.html" }}
+{{ define "_partials/inline/foo.html" }}
{{ printf "The answer is %v." .answer }}
{{ end }}
```
@@ -58,13 +38,5 @@ The key distinctions between the preceding two examples are:
{{% include "/_common/functions/go-template/text-template.md" %}}
-[`disqus.html`]: /templates/embedded/#disqus
-[`google_analytics.html`]: /templates/embedded/#google-analytics
-[`opengraph.html`]: /templates/embedded/#open-graph
-[`pagination.html`]: /templates/embedded/#pagination
[`partialCached`]: /functions/partials/includecached/
-[`partial`]: /functions/partials/include/
[`return`]: /functions/go-template/return/
-[`schema.html`]: /templates/embedded/#schema
-[`twitter_cards.html`]: /templates/embedded/#x-twitter-cards
-[inline partial]: /templates/partial/#inline-partials