From e44cf902c2f2c22c75314d1b3868c02aab93cd7c Mon Sep 17 00:00:00 2001 From: TheYoungManLi Date: Thu, 23 Jun 2022 16:09:11 +0800 Subject: [PATCH] fix: support docs switch to '/docs/v3.3' Signed-off-by: TheYoungManLi --- layouts/partials/css.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/layouts/partials/css.html b/layouts/partials/css.html index e37e5e974..fc2f3c73a 100644 --- a/layouts/partials/css.html +++ b/layouts/partials/css.html @@ -25,11 +25,14 @@ {{ if .IsDescendant (.GetPage "/docs") }} - -{{ if not (eq . (.GetPage "/docs"))}} -{{ $style := resources.Get "scss/doc.scss" | toCSS | minify | fingerprint }} - -{{ end }} + + {{ if not (eq . (.GetPage "/docs"))}} + {{ $folder := . }} + {{ if not $folder.Params.isDocsRoot }} + {{ $style := resources.Get "scss/doc.scss" | toCSS | minify | fingerprint }} + + {{ end }} + {{ end }} {{ end }} {{ if .IsDescendant (.GetPage "/learn") }}