Mar 15, 202311:28 AM - edited Mar 15, 202311:36 AM
Top Contributor
Why the variable in the template ?
The css is in another file.
It's only used by that specific template so it's only called by that template. Otherwise you'd be calling it on pages that don't need it and that'd add to load time unnecessarily.
Edit: slight correction, I'm assuming this is the boilerplate/a theme based on the boilerplate. blog.css is used in both the blog-index template and the blog-post template, but the reasoning would be the same. I am also assuming that's why it's loaded like that but it would stand to reason.