NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Hugo's New CSS Powers (brycewray.com)
brycewray 1 days ago [-]
Author here. This post arose out of a recent thread on the Hugo Discourse:

https://discourse.gohugo.io/t/hugo-v0-158-0-released/56868

giancarlostoro 1 days ago [-]
Good call out from that thread is he's trying to get a small change in esbuild added to help with this as well.

https://github.com/evanw/esbuild/issues/4419

brycewray 23 hours ago [-]
Yes; hope that gets blessed. We shall see.
extra88 21 hours ago [-]
BTW, there's a glitch in your code snippet syntax highlighting; in Light mode, the 'p' selector is remaining an unreadable yellow.
brycewray 21 hours ago [-]
Whoops. Thanks for the catch. I was trying to trim down some of my CSS the other day, but inadvertently forgot to leave my `--cyan-700` variable. The yellow you saw was supposed to warn me, "Hey, you missed one!" but I apparently missed that one. :-/ Fixed.
TeddyDD 10 hours ago [-]
Don't use Hugo. The maintainers are so detached from reality it's not even funny. The project is about 12 years old, has +80k stars on github and used in production by many. Despite that still no 1.0 version and they introduce breaking changes for no good reason. You website will break all the time. I made a mistake of creating few websites with it and now I have to rewrite them all in other SSG because I refuse to participate in this circus.
yoz-y 10 hours ago [-]
Eh. It’s written in go. I just built the binary, stuffed it in my repo and continued to use the same version for years. Then when I wanted to update I rewrote my whole theme from scratch, recompiled and now I’m set for years again.
wiether 59 minutes ago [-]
Yes that's exactly what I did.

I have a docker image with a given version of Hugo and I've been using it for years now.

That's the beauty of building HTML: you don't HAVE to stay up to date to get security fixes.

TeddyDD 9 hours ago [-]
Good idea, sounds like the only sane way to use it.
imagetic 23 hours ago [-]
Yeah Bryce!
rheakapoor 14 hours ago [-]
[dead]
nine_k 1 days ago [-]
Nice! (But I must say that Zola has this built-in since forever.)
brycewray 23 hours ago [-]
For Sass, yes[0] --- as has Hugo[1]. Hugo's recently added `css.Build` function, based on esbuild, is for post-processing vanilla CSS.

[0]: https://www.getzola.org/documentation/content/sass/

[1]: https://github.com/gohugoio/hugo/releases/tag/v0.43 (July, 2018)

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 20:09:12 GMT+0000 (Coordinated Universal Time) with Vercel.