theupdateframework / theupdateframework.io

Website assets for TUF
5 stars 17 forks source link

fix url parser #48

Closed h4l0gen closed 1 month ago

h4l0gen commented 1 month ago

We are getting this error on running website https://theupdateframework.io/ locally,

$ hugo server
WARN  DEPRECATED: Kind "taxonomyterm" used in disableKinds is deprecated, use "taxonomy" instead.
Watching for changes in ../theupdateframework.io/{assets,content,data,layouts,package.json,static}
Watching for config changes in ../theupdateframework.io/config.toml
Start building sites …
hugo v0.126.1-3d40aba512931031921463dafc172c0d124437b8+extended linux/amd64 BuildDate=2024-05-15T10:42:34Z VendorInfo=snap:0.126.1

WARN  deprecated: .Site.IsServer was deprecated in Hugo v0.120.0 and will be removed in a future release. Use hugo.IsServer instead.
ERROR TOCSS: failed to transform "sass/style.sass" (text/x-sass): "../theupdateframework.io/assets/sass/style.sass:13:9": malformed URL
Built in 1762 ms
Error: error building site: TOCSS: failed to transform "sass/style.sass" (text/x-sass): "../theupdateframework.io/assets/sass/style.sass:13:9": malformed URL

Hence we need to fix this by passing URL as a string.

h4l0gen commented 1 month ago

Hii maintainers, @Vivekgaddigi , If you like this change can we merge it?