statiqdev / Statiq.Web

Statiq Web is a flexible static site generator written in .NET.
https://statiq.dev/web
Other
1.64k stars 234 forks source link

New Stylesheets, Scripts, and HeadJavascripts, BodyJavascripts metadata #778

Open daveaglick opened 5 years ago

daveaglick commented 5 years ago

Add new metadata to the Blog and Docs recipes called Stylesheets, Scripts, and InlineScripts. These will "inject" the specified URLs or inline scripts into the HTML after Razor processing. The new values should be additive (#777).

ibebbs commented 4 years ago

Hey @daveaglick, any progress on this? I was just about to ask about how best to inject some additional styles and script into my site when I found this issue.

Incidentally, it would be great if this metadata could be provided at a blog post level (perhaps along side the Title, Lead, etc) so styles/code could be included for just specific posts (I'm writing a particularly complex one ATM).

Thanks!

daveaglick commented 4 years ago

@ibebbs This likely won't make it into Wyam - most new development effort is going into Statiq and Wyam is essentially in maintenance mode. That's not as dire as it sounds though - Statiq is a "reboot" of Wyam, think of it as Wyam v3.

The good news is that Statiq is designed with a lot of lessons learned over the last several years so enhancements like this will be easier to implement. As the Wyam blog and docs recipes get ported I'll also go through backlog issues like these and try to knock out a bunch of them as I go. The not so good news is that while development is proceeding quickly and well, we're still a few months away from the blog and docs recipes getting ported.

ibebbs commented 4 years ago

Hi Dave, thanks for getting back to me.

Statiq looks interesting. I'd be keen to understand what it offers over or issues it resolves within Wyam which has been my go-to static site generator for quite some time now.

Is there a Gitter or Slack channel for it?

daveaglick commented 4 years ago

I'm still using the main Wyam Gitter for both: https://gitter.im/Wyamio/Wyam. I'm strongly considering setting up a Spectrum room for Statiq going forward though - Gitter has been flaky and the experience isn't great IMO.

Some big differences/advantages off the top of my head: