Menu icon Foundation
Unique page titles and meta data inside page <head>

Hi,

What is the correct way to add unique page titles and meta data to the <head> of each html page?

I don't think this page from f6 docs explains.

Thanks!

F6paninicustom datapage titlemeta data

Hi,

What is the correct way to add unique page titles and meta data to the <head> of each html page?

I don't think this page from f6 docs explains.

Thanks!

Ryan McCready about 3 years ago

Hi Darren,

This is how we have it set up on the Foundation site:

<title>Foundation for Sites | {{name}}</title>

So then each page will have the name defined in the top in the front matter.

---
layout: sites
name: Getting started
---

This means each page will get the variable of "Name".

 

Let us know how it goes!

Son of Spectrum about 3 years ago

Thanks Ryan, that worked!

The link which I provided does explain somewhat, just not this specific scenario...

Ryan McCready about 3 years ago

Rad, glad you got it! Let us know if anything else comes up :)