fixed relative paths for stylesheet

This commit is contained in:
Daniel Fichtinger 2024-11-28 19:05:24 -05:00
parent 065c344c03
commit 93c0359df2
2 changed files with 16 additions and 7 deletions

View file

@ -94,8 +94,7 @@ func buildSettings(f []byte, outRoot string) (*Settings, error) {
if isDefaultStyle {
stylePath := filepath.Join(outRoot, defaultNames["stylePath"])
// We convert the stylesheet path to its website root dir format and store it
s.StylePath = "/" + util.StripTopDir(stylePath)
s.StylePath = stylePath
err := util.CreateParents(stylePath)
if err != nil {
return nil, util.ErrorPrepend("Could not create default stylesheet directory: ", err)