Confused about $styles.Permalink

Hello,

I apologize for this simple question - I did try and search…

I want to use the pipeline feature to build my CSS from SCSS. I used the example

     {{ $styles := resources.Get "scss/style.scss" | toCSS  }}
   <link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">

The result though is my href just points to the root of my site - not the scss/style.css path to my generated css file. I guess I don’t really understand the .Permalink property in this case. Do I need to have something in my config.toml file to set permalinks for styles?

This must be something simple I’m missing because I can’t find anyone else asking about it. Thanks for any help.

This works for me: Hugo picking up file changes via saved file in editor, but not via gulp (macOS)

Perhaps this helps.

It does - thank you very much!

Not sure why I wasn’t getting the full path to the generated css in the first place but it seems to be working now. Appreciate the help.

1 Like