Specifying Page Titles & Meta Tags

In this lesson, we'll learn how we can append information into the head of our document with Inertia on a per-page basis. We'll then create our own head component, wrapping Inertia's, to allow easier global changes.

Published
Sep 06, 24
Duration
8m 59s

Developer & dog lover. I teach AdonisJS, a full-featured Node.js framework, at Adocasts where I publish weekly lessons. Professionally, I work with JavaScript, .NET, and SQL Server.

Adocasts

Burlington, KY

Get the Code

Download or explore the source code for this lesson on GitHub

Repository

Chapters

00:00 - Introducing Inertia's Head Component
01:20 - Inertia's Global Title Method
02:15 - Adding Our First Page Title and Meta Description
03:19 - Inertia Meta Tag Attribute
04:33 - An Updated Note on SSR Titles
06:37 - Creating An AppHead Component

👋 Hey all, just a heads up that an updated note regarding SSR and page titles was added to this lesson on Sept 28, 2024. You can find it a 04:33.

Join The Discussion! (0 Comments)

Please sign in or sign up for free to join in on the dicussion.

robot comment bubble

Be the first to Comment!