Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'

This commit is contained in:
Bjørn Erik Pedersen
2023-12-04 15:24:01 +01:00
810 changed files with 24147 additions and 7766 deletions

View File

@@ -8,8 +8,8 @@ menu:
parent: templates
weight: 120
weight: 120
aliases: [/templates/partial/,/layout/chrome/,/extras/analytics/]
toc: true
aliases: [/templates/partial/,/layout/chrome/,/extras/analytics/]
---
{{< youtube pjS4pOLyB7c >}}
@@ -128,7 +128,7 @@ Value: {{ partial "my-inline-partial.html" . }}
## Cached partials
The `partialCached` template function provides significant performance gains for complex templates that don't need to be re-rendered on every invocation. See [details][partialcached].
The `partialCached` template function provides significant performance gains for complex templates that don't need to be re-rendered on every invocation. See&nbsp;[details][partialcached].
## Examples
@@ -136,7 +136,7 @@ The `partialCached` template function provides significant performance gains for
The following `header.html` partial template is used for [spf13.com](https://spf13.com/):
{{< code file="layouts/partials/header.html" >}}
{{< code file=layouts/partials/header.html >}}
<!DOCTYPE html>
<html class="no-js" lang="en-US" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<head>
@@ -161,7 +161,7 @@ The `header.html` example partial was built before the introduction of block tem
The following `footer.html` partial template is used for [spf13.com](https://spf13.com/):
{{< code file="layouts/partials/footer.html" >}}
{{< code file=layouts/partials/footer.html >}}
<footer>
<div>
<p>