Make use of partialCached when appropriate.
This commit is contained in:
parent
0d35371f5f
commit
498d3baa1b
1 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||||
{{ partial "meta.html" . }}
|
{{ partialCached "meta.html" . }}
|
||||||
{{ block "meta" . }}{{ end }}
|
{{ block "meta" . }}{{ end }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<h1 class="header__site-name">
|
<h1 class="header__site-name">
|
||||||
<a href="{{ .Site.BaseURL }}" title="Home" class="header__site-link" rel="home"><span>{{ .Site.Title }}</span></a>
|
<a href="{{ .Site.BaseURL }}" title="Home" class="header__site-link" rel="home"><span>{{ .Site.Title }}</span></a>
|
||||||
</h1>
|
</h1>
|
||||||
<div class="header__region region region-header">{{ if .Site.Params.search }}{{ partial "search.html" . }}{{ end }}</div>
|
<div class="header__region region region-header">{{ if .Site.Params.search }}{{ partialCached "search.html" . }}{{ end }}</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="layout-3col layout-swap">
|
<div class="layout-3col layout-swap">
|
||||||
|
|
@ -27,6 +27,6 @@
|
||||||
{{ if .Site.Params.poweredby }}<p>Powered by <a href="https://gohugo.io/">Hugo</a></p>{{ end }}
|
{{ if .Site.Params.poweredby }}<p>Powered by <a href="https://gohugo.io/">Hugo</a></p>{{ end }}
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
{{ partial "scripts.html" . }}
|
{{ partialCached "scripts.html" . }}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue