When you say it’s showing errors, what do you mean by that? Do you have an example of your errors?
Also, could you provide an example of one of the troublesome pagetitles?
As an aside, when you get into this kind of nesting for logic in your templates, where there is a lot of recursion, it’s often better to write a small snippet to perform the logic. People here might be willing to help you craft that snippet.
So the main issue is that if you look at the og:title meta property, the apostrophe following the word “fixin” causes the property content to end early and my ADA compliance checker is finding an error in the attribute because of this.
FWIW, unless your site start page changes often, it’s pretty inefficient to test for it on every page of the site. I’d suggest just putting whatever you want directly in that tag on the site_start page (no snippet tag, no modifiers).
Then, you can just do this in the snippet (much simpler and faster):