diff --git a/assets/css/_page/_single/_toc.scss b/assets/css/_page/_single/_toc.scss
index 73bcce6b..bf2c5182 100644
--- a/assets/css/_page/_single/_toc.scss
+++ b/assets/css/_page/_single/_toc.scss
@@ -126,7 +126,7 @@
.toc-content {
overflow-y: scroll;
// TODO 这里计算错误,待重构使用 JS 计算
- max-height: calc(100vh - #{2 * #{fixit-var(header-height)}});
+ max-height: calc(100vh - 2 * var(--fi-header-height));
@include scrollbar-width(none, 0);
&.always-active ul,
diff --git a/hugo.toml b/hugo.toml
index a22277fb..a3ce905c 100644
--- a/hugo.toml
+++ b/hugo.toml
@@ -710,6 +710,8 @@ disclaimer = ""
enable = true
# special amount of posts in each home posts page
paginate = 6
+# whether to show featured image preview in home page post list
+imagePreview = true
# FixIt 0.2.16 | CHANGED Social config about the author
[params.social]
diff --git a/layouts/_partials/plugin/style.html b/layouts/_partials/plugin/style.html
index f0da6a6c..705d3554 100644
--- a/layouts/_partials/plugin/style.html
+++ b/layouts/_partials/plugin/style.html
@@ -15,7 +15,7 @@
{{- $resource = $resource | resources.ExecuteAsTemplate . $.Context -}}
{{- end -}}
{{- with .ToCSS -}}
- {{- $options := . | merge (dict "outputStyle" "compressed") -}}
+ {{- $options := . | merge (dict "outputStyle" "compressed" "transpiler" "dartsass" "silenceDeprecations" (slice "import" "global-builtin" "color-functions" "function-units")) -}}
{{- $resource = $resource | toCSS $options -}}
{{- end -}}
{{- if .Minify -}}
@@ -44,3 +44,4 @@
{{- end -}}
{{- end -}}
+
diff --git a/layouts/summary.html b/layouts/summary.html
index b891d317..f7ffff73 100644
--- a/layouts/summary.html
+++ b/layouts/summary.html
@@ -1,6 +1,7 @@
{{- $params := .Params | merge .Site.Params.page -}}
+ {{- if not (eq .Site.Params.home.posts.imagePreview false) -}}
{{- /* Featured image */ -}}
{{- $image := $params.featuredimagepreview | default $params.featuredimage -}}
{{- $matches := slice -}}
@@ -12,15 +13,16 @@
{{- if $image | or (gt (len $matches) 0) -}}
{{- end -}}
+ {{- end -}}
{{- /* Title */ -}}