Hi everyone,
I’m customizing the Headline theme and I want to replace the default JSON-LD schema @type: "Article" injected via {{ghost_head}} with @type: "NewsArticle".
I’ve already created a newsarticleschema.hbs file with the correct NewsArticle markup, and it works when inserted manually. However, when I include {{ghost_head}} in the <head>, it automatically adds the default Article schema, resulting in two conflicting schemas (Article and NewsArticle) on each post.
If I remove {{ghost_head}}, I lose important functionality such as:
- Google AdSense
- Social share buttons with embedded CSS
- Code injection set in the Admin panel (header section)
Environment:
- Ghost version: latest
- Hosting: PikaPods
- Theme: Headline
Question:
Is there a native or recommended way to override or replace the Article schema with NewsArticle in Ghost without removing {{ghost_head}}?
If not, is there any flag, helper, or clean workaround to handle this properly at the theme level?
Thanks in advance.