perf: cache partial "search.html"

This commit is contained in:
Xin
2023-10-21 23:13:30 +01:00
parent 97e6945c04
commit 792ad4b569
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
{{- $currentPage := . -}}
{{- range .Site.Menus.main -}}
{{- if eq .Params.type "search" -}}
{{- partial "search.html" (dict "params" .Params) -}}
{{- partialCached "search.html" $currentPage -}}
{{- else -}}
{{- $external := strings.HasPrefix .URL "http" -}}
{{/* Display icon menu item */}}