forked from drowl87/hextra_mirror
perf: cache partial "search.html"
This commit is contained in:
@ -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 */}}
|
||||
|
Reference in New Issue
Block a user