Add caching to some partials that don't change much

This commit is contained in:
2021-10-11 09:52:24 -05:00
parent 9ff5314bc0
commit 03834fb1ba
7 changed files with 26 additions and 25 deletions

View File

@ -2,7 +2,7 @@
<div class="post-title">
<h1>
{{ .Title | markdownify }}
{{ if .Draft }}{{ partial "icon.html" "edit" }}{{ end }}
{{ if .Draft }}{{ partialCached "icon.html" "edit" "edit" }}{{ end }}
</h1>
</div>