-
Hi, I am new to foundation I spend a lot more time figuring out how does the page titles work for individual pages. I couldn't figure it how. I don't see my page title change every time I created a new html page. can anyone guide me? cheers~ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Pretty weird, the time I have posted here my issue I just figured it out that I need to delete the <title> tag in the layouts/default.html and added a <title> tag on pages/index.html and etc... Anyway thank you. If you can share another way how to do it. please let me know. cheers~ |
Beta Was this translation helpful? Give feedback.
-
@smrtrnx sounds like you're using Foundation with Panini is that right? If so, then in your layouts/default.html <title> tag you would place kind of like a variable that would change for each page. So here's how mine looks:
then in pages/index.html you have at the top of each page what you call "front matter" that starts with "---" at the top and bottom of the front matter. so for the title for the index page it would look like:
then for each page within pages folder, you would place a different title after meta-title: in the front matter for that page. but there's a lot more to learn for Panini than just that. so not sure if that's what you're using or not. |
Beta Was this translation helpful? Give feedback.
@smrtrnx sounds like you're using Foundation with Panini is that right? If so, then in your layouts/default.html <title> tag you would place kind of like a variable that would change for each page. So here's how mine looks:
<title>{{meta-title}}</title>
then in pages/index.html you have at the top of each page what you call "front matter" that starts with "---" at the top and bottom of the front matter. so for the title for the index page it would look like:
then for each page within pages folder, you would place a different title after meta-title: in the front matter for that page. but there's a lot more to learn for Panini than just that. so …