Skip to content

Commit

Permalink
feat: cache some partials
Browse files Browse the repository at this point in the history
  • Loading branch information
WingLim committed Sep 25, 2021
1 parent 6640677 commit e4e85ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{ partial "head/head" . }}
{{ partial "header" . }}
{{ partialCached "head/head" . }}
{{ partialCached "header" . }}

<div class="container">
<main>
<h1>404 NOT FOUND</h1>
</main>
</div>

{{ partial "footer/footer" . }}
{{ partialCached "footer/footer" . }}
8 changes: 4 additions & 4 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{ partial "head/head" . }}
{{ partial "head/colorScheme" . }}
{{ partialCached "head/head" . }}
{{ partialCached "head/colorScheme" . }}

<body class="dark">
{{ partial "header.html" . }}
{{ partialCached "header.html" . }}
<main>
{{ block "main" . }}{{ end }}
</main>
{{ partial "footer/footer" . }}
{{ partialCached "footer/footer" . }}
</body>
</html>

0 comments on commit e4e85ec

Please sign in to comment.