Closed gcushen closed 5 years ago
Hugo Docs on converting Sass to CSS https://gohugo.io/hugo-pipes/scss-sass/
@gcushen I'm interested in looking into this ticket - could I be assigned to it?
Would plan to collaborate and get feedback on the new file structure for Sass files
@ryanwhocodes sure, you're welcome to start on it :)
I have broken down the issue into some rough tasks in the issue description. It will take quite a bit of effort to complete, especially Phase 2, which requires more specialist knowledge to try to understand which parts of the current CSS are overriding Bootstrap and can be refactored to utilise Bootstrap SASS variables where possible.
It really helps to have this larger task broken down into smaller steps - they are very clear and well defined.
I started work on Phase 1 but there are many smaller decisions to make on the implementation and each change requires testing and could do with feedback from other contributors. How do you feel about this being done via a series of smaller issues, or through a new issue opened for the next stage of the work once the dependent steps are done first?
Would be interested in starting with the refactoring of academic.css into sass and get that working before trying to add bootstrap to the local asset processing pipeline.
@ryanwhocodes Please send a PR with whatever you have made till now. As you make changes, interested people like me can test and give feedback.
It looks like this will require restructuring the assets and how they are processed within this theme, which is more work than I originally thought it might be to amend the color scheme of a website dynamically.
I don't have time to undertake this amount of work at the moment so would like to pass on this ticket for the time being.
Restructure
academic.css
as SASS files and process using Hugo's new SASS pipelines.A prerequisite is to check the feasibility of converting Academic's dynamic theming system (
parse_theme.css
) to Hugo's SASS system.See https://gohugo.io/hugo-pipes/scss-sass/
This issue is effectively BLOCKED for now due to Hugo's SASS compilation dependencies being dynamically linked rather than statically and Netlify not having the corresponding dependencies installed (see https://github.com/netlify/build-image/issues/183 and https://www.netlify.com/docs/build-gotchas/#hugo).
Phase 1
assets.toml
assets.toml
or include JS locally