We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Setting Page titles that are not from content .md files

Seth Giammanco February 14, 2015 by Seth Giammanco

I am working on a theme that integrates with a third part service. There is one template used in this site that loads "pages" dynamically from data from this third party service and as such it is not desirable to have the <title></title> in the layout be set from the .md file. I'd like to be able to set the title using data returned from this third part service.

Is there some way to pass a variable (in this case "title") from a template to a layout?

Thanks, Seth

Answered by Gareth Redfern!
>>>>>>> Answered <<<<<<<
10 Replies