mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
fix: Dart Sass compatibility + feat: add imagePreview config for home page (#741)
* Dart Sass calc compatibility * Fix: Default to Dart Sass transpiler + silence deprecations * Fix: Add imagePreview config toggle — wrap the featured image block * Implement featured image preview in summary.html Added featured image preview functionality to summary layout. * Add imagePreview parameter to home posts configuration Added option to control featured image preview in home posts. * Enable image preview in home page post list
This commit is contained in:
committed by
GitHub
parent
77bb00ce5c
commit
e68bdb374b
@@ -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 @@
|
||||
<link rel="stylesheet" {{ $attrs | safeHTMLAttr }}>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user