Unable to use the Jekyll {seo} tag with Pages #108451
-
Select Topic AreaQuestion BodyHi, I've been trying to add SEO to my published website on GitHub Pages. I've been troubleshooting for days, any assistance would be much appreciated. I've followed the following steps:
When I preview the site I can visibly see the I also am getting Heres my code
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
How do you deploy your Page site? If you just selected a source branch for instance, you don't even need to install anything because we load the SEO plugin for you already: https://pages.github.com/versions/. |
Beta Was this translation helpful? Give feedback.
-
It's really odd, I also can still see the tag and front matter when viewing the site, it's putting it into the body 😭 |
Beta Was this translation helpful? Give feedback.
Gotcha so you don't exactly need all the plugins stuff, it's there for you already (not that it bothers to have it defined).
I think Jekyll does not expand Liquid syntax in an html file if there is no front matter for it.
https://jekyllrb.com/tutorials/orderofinterpretation/#order-of-interpretations
So at the top of your file (https://github.com/lukeylias/sa11y/blob/56f5f8c0994e862f78189fdaed8a30081c694310/index.html), I would try to add an empty front matter (like you have in your snippet here 🙈):