github.com/bugoio/bugo-sass-utilities
Readme
A Hugo Module that contains Bugo specific Sass functions, mixins & variables
Before starting check the list below:
If your project isn't a Hugo Module.
hugo mod init
Get this module.
hugo mod get github.com/bugoio/bugo-sass-utulities
Add it to your Hugo config file (shown in YAML).
module:
imports:
- disable: false
ignoreConfig: false
path: github.com/bugoio/bugo-sass-utilities
This partial consolidates all SASS variables stored in your project's assets folders. Since this runs at build time it uses Hugo's "consoloidated" assets directory.
Files must be named one of two ways to be included.
Add the partial to your /layouts/_default/baseof.html
template. Anywhere will do. This partial does not output any markup. The partial call below is included in the bugo-stylesheets partial. If you're already using bugo-stylesheets, you don't need to call it again.
{{ partial "utilities/bugo-sass-utilities" . }}
Creates a variables file in your local build folder from all files labeled *-vars.scss
at build time.
/public/site-variables-example.scss
**/*-global-variables.scss
firstThis partial returns a permalink to a consolidated CSS resource.
.scss`` files in Hugo's assetDir (
/assets`` by default)_*.scss
){{ $stylesheet := partial "utilities/bugo-stylesheets" . }}
<link rel="stylesheet" href="{{ $stylesheet }}" media="screen" />
FAQs
Unknown package
We found that github.com/bugoio/bugo-sass-utilities demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.