Many thanks @kristoff for Zine, I’ve been enjoying using it over the past few weeks.
I’ve ported two personal sites over from Hugo:
Both hosted with Cloudflare pages.
Overall, the experience has been great. Both ports saw big reduction in complexity (dropped about 30% in lines of code). Nice to have HTML formatting and LSP support (VS Code). I was able to 100% match the design and content of the Hugo incarnations for both sites.
The only Hugo feature I missed was the isServer function (someone else has already posted this as a feature request #180)
On my old site I used this function on a page that includes Paddle’s javascript for a “Buy now” button. In development, the script should use Paddle’s test token/ product code &, in production, use the real things.
It’s probably not the most elegant approach, but I found a solution for this by testing for the presence/absence of “localhost” in the host URL: <script type="text/javascript" :if="$site.host_url.contains('localhost').not()">
(I can’t share a link as I’ve hit my two maximum links for new members, but the code is in the get-it.shtml layout in the sipli.city repo).