mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-18 14:04:39 -04:00
content: Fix links to embedded template source
This commit is contained in:
parent
908a555326
commit
7b1fcca27e
@ -10,7 +10,7 @@ aliases: [/templates/internal]
|
|||||||
## Disqus
|
## Disqus
|
||||||
|
|
||||||
> [!note]
|
> [!note]
|
||||||
> To override Hugo's embedded Disqus template, copy the [source code] to a file with the same name in the `layouts/partials` directory, then call it from your templates using the [`partial`] function:
|
> To override Hugo's embedded Disqus template, copy the [source code]({{% eturl disqus %}}) to a file with the same name in the `layouts/partials` directory, then call it from your templates using the [`partial`] function:
|
||||||
>
|
>
|
||||||
> `{{ partial "disqus.html" . }}`
|
> `{{ partial "disqus.html" . }}`
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ disable
|
|||||||
## Google Analytics
|
## Google Analytics
|
||||||
|
|
||||||
> [!note]
|
> [!note]
|
||||||
> To override Hugo's embedded Google Analytics template, copy the [source code] to a file with the same name in the `layouts/partials` directory, then call it from your templates using the [`partial`] function:
|
> To override Hugo's embedded Google Analytics template, copy the [source code]({{% eturl google_analytics %}}) to a file with the same name in the `layouts/partials` directory, then call it from your templates using the [`partial`] function:
|
||||||
>
|
>
|
||||||
> `{{ partial "google_analytics.html" . }}`
|
> `{{ partial "google_analytics.html" . }}`
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ respectDoNotTrack
|
|||||||
## Open Graph
|
## Open Graph
|
||||||
|
|
||||||
> [!note]
|
> [!note]
|
||||||
> To override Hugo's embedded Open Graph template, copy the [source code] to a file with the same name in the `layouts/partials` directory, then call it from your templates using the [`partial`] function:
|
> To override Hugo's embedded Open Graph template, copy the [source code]({{% eturl opengraph %}}) to a file with the same name in the `layouts/partials` directory, then call it from your templates using the [`partial`] function:
|
||||||
>
|
>
|
||||||
> `{{ partial "opengraph.html" . }}`
|
> `{{ partial "opengraph.html" . }}`
|
||||||
|
|
||||||
@ -148,7 +148,7 @@ If using YouTube this will produce a og:video tag like `<meta property="og:video
|
|||||||
## Schema
|
## Schema
|
||||||
|
|
||||||
> [!note]
|
> [!note]
|
||||||
> To override Hugo's embedded Schema template, copy the [source code] to a file with the same name in the `layouts/partials` directory, then call it from your templates using the [`partial`] function:
|
> To override Hugo's embedded Schema template, copy the [source code]({{% eturl schema %}}) to a file with the same name in the `layouts/partials` directory, then call it from your templates using the [`partial`] function:
|
||||||
>
|
>
|
||||||
> `{{ partial "schema.html" . }}`
|
> `{{ partial "schema.html" . }}`
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ To include the embedded template:
|
|||||||
## X (Twitter) Cards
|
## X (Twitter) Cards
|
||||||
|
|
||||||
> [!note]
|
> [!note]
|
||||||
> To override Hugo's embedded Twitter Cards template, copy the [source code] to a file with the same name in the `layouts/partials` directory, then call it from your templates using the [`partial`] function:
|
> To override Hugo's embedded Twitter Cards template, copy the [source code]({{% eturl twitter_cards %}}) to a file with the same name in the `layouts/partials` directory, then call it from your templates using the [`partial`] function:
|
||||||
>
|
>
|
||||||
> `{{ partial "twitter_cards.html" . }}`
|
> `{{ partial "twitter_cards.html" . }}`
|
||||||
|
|
||||||
@ -216,8 +216,3 @@ NOTE: The `@` will be added for you
|
|||||||
[Google Analytics 4]: https://support.google.com/analytics/answer/10089681
|
[Google Analytics 4]: https://support.google.com/analytics/answer/10089681
|
||||||
[microdata]: https://html.spec.whatwg.org/multipage/microdata.html#microdata
|
[microdata]: https://html.spec.whatwg.org/multipage/microdata.html#microdata
|
||||||
[signing up]: https://disqus.com/profile/signup/
|
[signing up]: https://disqus.com/profile/signup/
|
||||||
[source code]: {{% eturl disqus %}}
|
|
||||||
[source code]: {{% eturl google_analytics %}}
|
|
||||||
[source code]: {{% eturl opengraph %}}
|
|
||||||
[source code]: {{% eturl schema %}}
|
|
||||||
[source code]: {{% eturl twitter_cards %}}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user