Hugo-coder: Custom SCSS files generated twice

Created on 10 Apr 2020  路  3Comments  路  Source: luizdepra/hugo-coder

Hi all,

I'm currently working to create a new projects showcase page as you can see here.

I noticed that this feature #244 causes problem. The SCSS files are generated twice because they are already generated before as you can see below :
image
image

Steps to reproduce

  1. Add this line to your config.toml file (the files are located inside assets/ directory)

    custom_scss = ["scss/coder.scss", "scss/coder-dark.scss"]

  2. Override the SCSS files of the theme (copy them inside assets/ directory)

All 3 comments

Hmm... weird. Looks like there is something missing in the base template.
I'm gonna take a look later.

Ahhh, man. I think I know what is the problem.
If you are overriding any SCSS file from the theme you don't need to put it in the custom_scss. Hugo is smart enough to figure it out and do the job.
Try removing both files from the config and see if everything is ok.

Ok, so it's just to add new SCSS files like @elihunter173 did in repo here, not SCSS files with the same name as in the theme.
Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mauricioabreu picture mauricioabreu  路  5Comments

sunxichen picture sunxichen  路  3Comments

vvug picture vvug  路  4Comments

maxdrohde picture maxdrohde  路  3Comments

luizdepra picture luizdepra  路  6Comments