Skip to content

Manual snippet

Some page templates are not available in multiple languages, you can manually create and paste in both your Vietnamese and English articles. Make and save with ghost’s Snippet card for reuse.

Ghost's snippet tag
Ghost’s snippet tag
<link rel="alternate" href="https://[]/en/[slug]/" hreflang="en" />
<link rel="alternate" href="https://[]/[slug]/" hreflang="vi" />
<link rel="alternate" href="https://[]/en/[slug]/" hreflang="x-default" />


  • [] with your domain
  • [slug] with the post’s slug. Note that the copy is correct, with the slug in the line hreflang="vi", copy the correct slug of that article. Similar to hreflang="en"

Then copy and paste into both posts at Code injection > Post header

Paste in the Post header of 2 articles
Paste in the Post header of 2 articles

Check out any or both if you’re doing it for the first time at: