monkeyWzr / hugo-theme-cactus

Cactus theme for hugo
MIT License
537 stars 338 forks source link

Move from Stylus to SCSS #15

Closed Nizzlay closed 3 years ago

Nizzlay commented 3 years ago

Hugo has native support for SCSS. It would be a better fit for the project. It can result in not having to include the pre-rendered CSS files in the source. Can use Hugo to minify the resulting CSS, and provide sourcemaps.

Nizzlay commented 3 years ago

Sadly, I'm not good with (S)CSS. I asked some guy on Fiverr to make it work. He delivered me this: assets.zip

It works for the dark theme.

in head.html I have this code:

{{- $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" "true") -}}
{{- $styles := resources.Get "/main.scss" | resources.ToCSS $options }}
<link rel = 'stylesheet' href = '{{ $styles.RelPermalink }}' integrity = '{{ $styles.Data.Integrity }}'>
monkeyWzr commented 3 years ago

@Nizzlay Thank you so much for helping(this one and others)! And sorry for the delay and lack of response :bow:

monkeyWzr commented 3 years ago

@Nizzlay @onweru Hi there! The changes are now merged into the main branch. You can check it out though gh-pages.

And as explained in #64, I changed Sass syntax to SCSS syntax for easier development in the future.

Thanks again and best regards!

onweru commented 3 years ago

@monkeyWzr, thank you.

Nizzlay commented 3 years ago

@monkeyWzr Thank you :)