diff --git a/assets/lib/pace/pace-patch-flat-top.css b/assets/lib/pace/pace-patch-flat-top.css new file mode 100644 index 00000000..0d762e5f --- /dev/null +++ b/assets/lib/pace/pace-patch-flat-top.css @@ -0,0 +1,4 @@ +/* To patch pace theme flat-top z-index error */ +.pace { + z-index: 2000; +} \ No newline at end of file diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index 54afc38f..9018b63c 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -267,6 +267,10 @@ {{- end -}} {{- dict "Source" $paceJS "Fingerprint" $fingerprint "Async" true "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- dict "Source" $paceCSS "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/style.html" -}} + {{- /* To patch pace theme flat-top z-index error */ -}} + {{- if eq $.Site.Params.pace.theme "flat-top" -}} + {{- dict "Source" "lib/pace/pace-patch-flat-top.css" "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/style.html" -}} + {{- end -}} {{- end -}} {{- range $params.library.css -}}