Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: use partialCached #1951

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h1>Redirecting&hellip;</h1>
<div id="content-wrapper">
<div class="inner">
{{ partial "site-root.html" . }}
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . }}
</div> <!-- .inner -->
</div> <!-- #content-wrapper -->
{{ else if (isset .Params "book") }}
Expand Down Expand Up @@ -101,7 +101,7 @@ <h1>{{ .Params.book.section.cs_number }} {{ .Params.book.chapter.title }} - {{ .
{{ end }}
</div>
</div>
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . }}
</div>
{{ else if (isset .Params "docname") }}
<div class="inner">
Expand All @@ -128,7 +128,7 @@ <h3 hidden="true" data-pagefind-weight="{{ $weight }}">{{ $command_name }}</h3>
</div>
</div>
</div>
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . }}
</div>
{{ else }}
<div class="inner">
Expand Down Expand Up @@ -165,7 +165,7 @@ <h1 data-pagefind-meta="title">About{{ if (isset .Params "subtitle") }} - {{ .Pa
{{ end }}
</div>
</div>
{{ partial "footer.html" . }}
{{ partialCached "footer.html" . .Params "section" }}
</div>
{{ end }}

Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/site-root.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h3>Community</h3>
</div>
</section>
<section id="front-downloads">
{{ partial "monitor.html" . }}
{{ partialCached "monitor.html" . }}
<table>
<tr>
<td nowrap="true"><a href="{{ relURL "downloads/guis" }}" class="icon gui" id="gui-link">Graphical UIs</a></td>
Expand Down
2 changes: 1 addition & 1 deletion layouts/shortcodes/monitor.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{ partial "monitor.html" . }}
{{ partialCached "monitor.html" . }}
Loading