jlelse
/
Indieroad
Archived
1
Fork 0

Use partialCached for some partials

This commit is contained in:
Jan-Lukas Else 2020-02-16 21:56:58 +01:00
parent c8d2935fe3
commit 2b8c9fa273
6 changed files with 12 additions and 12 deletions

View File

@ -22,12 +22,12 @@
{{ else }}
<link rel="canonical" href="{{ .Permalink }}">
{{ end }}
{{ partial "indiewebhead" . }}
{{ partial "customhead" . }}
{{ partialCached "indiewebhead" . (.Param "indieweb.enabled") }}
{{ partialCached "customhead" . }}
</head>
<body class="body">
<div class="body-container">
{{ partial "header" . }}
{{ partialCached "header" . }}
<div class="wrapper flex">
<div class="primary">
{{ block "main" . }}
@ -41,6 +41,6 @@
</div>
{{ partial "footer" . }}
</div>
{{ partial "custombodyend" . }}
{{ partialCached "custombodyend" . }}
</body>
</html>

View File

@ -15,7 +15,7 @@
{{- .Render "summary" }}
{{- end }}
{{- end }}
{{ partial "authorbox.html" . }}
{{ partialCached "authorbox" . (.Param "authorbox") }}
</main>
{{ partial "pagination.html" . }}
{{ partial "pagination" . }}
{{ end }}

View File

@ -20,9 +20,9 @@
<p><a class="u-bookmark-of" href="{{ . }}" target="_blank">{{ . }}</a></p>
{{ end }}
</div>
{{ partial "post_tags.html" . }}
{{ partialCached "post_tags" . .Params.tags .Params.series }}
</article>
{{ partial "authorbox.html" . }}
{{ partialCached "authorbox" . (.Param "authorbox") }}
</main>
{{ partial "webmentionform" . }}
{{ partial "mentions.html" . }}

View File

@ -10,7 +10,7 @@
{{- range $paginator.Pages }}
{{- .Render "summary" }}
{{- end }}
{{ partial "authorbox.html" . }}
{{ partialCached "authorbox" . (.Param "authorbox") }}
</main>
{{ partial "pagination.html" . }}
{{ end }}

View File

@ -5,5 +5,5 @@
{{ with .Site.Params.subtitle }}<div class="tagline">{{ . }}</div>{{ end }}
</a>
</div>
{{ partial "menu.html" . }}
{{ partialCached "menu.html" . }}
</header>

View File

@ -15,7 +15,7 @@
{{- range $paginator.Pages }}
{{- .Render "photosummary" }}
{{- end }}
{{ partial "authorbox.html" . }}
{{ partialCached "authorbox" . (.Param "authorbox") }}
</main>
{{ partial "pagination.html" . }}
{{ partial "pagination" . }}
{{ end }}