mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
refactor!: migrate theme assets from css to scss and centralize deprecation detection (#735)
**Breaking changes**: 1. Legacy custom style/script files are no longer loaded automatically. 2. Users must migrate custom files to: - `custom.scss` - `override.scss` - `_variables.scss` - `assets/js/custom.js` **Migration guide**: 1. Move `assets/css/_custom.scss` to `assets/scss/custom.scss`. 2. Move `assets/css/_override.scss` to `assets/scss/override.scss`. 3. Keep variables in `assets/scss/_variables.scss`. 4. Move `assets/js/_custom.js` to `assets/js/custom.js`. 5. Rebuild site and verify no deprecation warnings remain.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{{- $logo := resources.Get "images/fixit.svg" | minify -}}
|
||||
{{- $loading := resources.Get "images/loading.svg" | minify -}}
|
||||
|
||||
@charset "utf-8";
|
||||
|
||||
@import "_variables";
|
||||
$base: "{{ relURL "" }}" !default;
|
||||
|
||||
:root {
|
||||
#{$rootPrefix}base: "#{$base}";
|
||||
#{$rootPrefix}logo-img: url("{{ $logo.RelPermalink }}");
|
||||
#{$rootPrefix}loading-img: url("{{ $loading.RelPermalink }}");
|
||||
}
|
||||
Reference in New Issue
Block a user