From 5811b21f02a443f477314f85ccc64d71ddffcca8 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 17 Jul 2026 20:38:03 +0800 Subject: [PATCH] fix(assets,layouts): correct page_style comment and remove newlines from deprecation warnings --- assets/scss/custom.scss.example | 2 +- layouts/_partials/init/detection-deprecated.html | 10 +++++----- layouts/_partials/init/index.html | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/assets/scss/custom.scss.example b/assets/scss/custom.scss.example index 458e1f33..262bfff8 100644 --- a/assets/scss/custom.scss.example +++ b/assets/scss/custom.scss.example @@ -18,7 +18,7 @@ // ———————————————————————————————————————————————————————————— // Custom Page Width -// Set pageStyle="custom" in the element to apply. +// Set page_style = "custom" in the site configuration to apply. // ———————————————————————————————————————————————————————————— @include page-style('custom') { @include media('xl') { diff --git a/layouts/_partials/init/detection-deprecated.html b/layouts/_partials/init/detection-deprecated.html index 3e89290a..2559108e 100644 --- a/layouts/_partials/init/detection-deprecated.html +++ b/layouts/_partials/init/detection-deprecated.html @@ -114,23 +114,23 @@ {{- end -}} {{- if fileExists "assets/css/_custom.scss" -}} - {{- $warns = $warns | append "The file `assets/css/_custom.scss` is deprecated. Please move your custom styles to `assets/scss/custom.scss`.\nSee: https://fixit.lruihao.cn/docs/advanced/" -}} + {{- $warns = $warns | append "The file `assets/css/_custom.scss` is deprecated. Please move your custom styles to `assets/scss/custom.scss`. See: https://fixit.lruihao.cn/docs/advanced/" -}} {{- end -}} {{- if fileExists "assets/css/_override.scss" -}} - {{- $warns = $warns | append "The file `assets/css/_override.scss` is deprecated. Use `[params.appearance]` in your site configuration instead.\nSee: https://fixit.lruihao.cn/docs/advanced/" -}} + {{- $warns = $warns | append "The file `assets/css/_override.scss` is deprecated. Use `[params.appearance]` in your site configuration instead. See: https://fixit.lruihao.cn/docs/advanced/" -}} {{- end -}} {{- if fileExists "assets/scss/override.scss" -}} - {{- $warns = $warns | append "The file `assets/scss/override.scss` is deprecated. Use `[params.appearance]` in your site configuration instead.\nSee: https://fixit.lruihao.cn/docs/advanced/" -}} + {{- $warns = $warns | append "The file `assets/scss/override.scss` is deprecated. Use `[params.appearance]` in your site configuration instead. See: https://fixit.lruihao.cn/docs/advanced/" -}} {{- end -}} {{- if fileExists "assets/css/_variables.scss" -}} - {{- $warns = $warns | append "The file `assets/css/_variables.scss` is deprecated. Please move your variables to `assets/scss/_variables.scss`.\nSee: https://fixit.lruihao.cn/docs/advanced/" -}} + {{- $warns = $warns | append "The file `assets/css/_variables.scss` is deprecated. Please move your variables to `assets/scss/_variables.scss`. See: https://fixit.lruihao.cn/docs/advanced/" -}} {{- end -}} {{- if fileExists "assets/js/_custom.js" -}} - {{- $warns = $warns | append "The file `assets/js/_custom.js` is deprecated. Please move your custom scripts to `assets/js/custom.ts` or `assets/js/custom.js`.\nSee: https://fixit.lruihao.cn/docs/advanced/" -}} + {{- $warns = $warns | append "The file `assets/js/_custom.js` is deprecated. Please move your custom scripts to `assets/js/custom.ts` or `assets/js/custom.js`. See: https://fixit.lruihao.cn/docs/advanced/" -}} {{- end -}} {{- if len $warns -}} diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 19a1b73f..88788db2 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -1,4 +1,4 @@ -{{- hugo.Store.Set "version" "v1.0.0-mrn7n5sf" -}} +{{- hugo.Store.Set "version" "v1.0.0-mroxqxk7" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}