Skip to content

Commit

Permalink
fix: not cache footer to enable katex/mathjax
Browse files Browse the repository at this point in the history
  • Loading branch information
WignLim committed Feb 14, 2022
1 parent 1a90697 commit 853548b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion layouts/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ <h1>404 NOT FOUND</h1>
</main>
</div>

{{ partialCached "footer/footer" . }}
{{ partial "footer/footer" . }}
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<main>
{{ block "main" . }}{{ end }}
</main>
{{ partialCached "footer/footer" . }}
{{ partial "footer/footer" . }}
</body>
</html>
2 changes: 1 addition & 1 deletion layouts/partials/footer/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{{ end }}
</nav>

{{ partialCached "footer/custom" . }}
{{ partial "footer/custom" . }}
</section>
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}
<script type="text/javascript">
Expand Down

0 comments on commit 853548b

Please sign in to comment.