diff options
| author | Eltrac <hi@guhub.cn> | 2025-09-10 19:38:18 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-09-10 19:38:18 +0800 |
| commit | ab0f89677c5daced755b64b66f3c79cd61d65220 (patch) | |
| tree | 4574cb59af0f9e393aa07357c27f682c46694162 /layouts/_partials/head/css.html | |
| parent | cac65038abbd13e2891f0084499ee82d9c67fb72 (diff) | |
perf: load pagefind js and css only when needed
Diffstat (limited to 'layouts/_partials/head/css.html')
| -rw-r--r-- | layouts/_partials/head/css.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layouts/_partials/head/css.html b/layouts/_partials/head/css.html index cbc0f4ba..250ef4a3 100644 --- a/layouts/_partials/head/css.html +++ b/layouts/_partials/head/css.html @@ -12,6 +12,11 @@ <style>{{ .Content | safeCSS }}</style> {{ end }} +<!-- Pagefind --> +{{ if eq .Kind "taxonomy" }} +<link rel="stylesheet" href="/pagefind/pagefind-ui.css"> +{{ end }} + <!-- Extra --> {{ range .Site.Params.extraCSSFiles -}} <link |
