DerploidEntertainment / Website

Infrastructure as Code and GitHub Pages sources for the Derploid website
https://www.derploid.com/
MIT License
2 stars 0 forks source link

Change all XML comments to Liquid comments #69

Open Rabadash8820 opened 1 year ago

Rabadash8820 commented 1 year ago

XML comments (<!-- like this -->) still get rendered by Jekyll, which means they still get downloaded by site visitors. No reason to add those additional bytes (and anybody who cares can look at this source code anyway), so let's just convert them to the Liquid templating system's comments ({% comment %}like this {% endcomment %}. WAY more verbose, but better performance. 🤷‍♂️ Liquid v5 does have a tighter inline comment syntax, but as of this writing, Jekyll is still on Liquid v4 and there's no way to force it to use v5.