This document discusses how you could inject dynamic content from a page into a layout using the
To follow the steps in this tutorial, first creat a page and a layout:
Injecting dynamic content into a layout is a two-step process:
Add the
app/views/layouts/application.liquid
Add the
app/views/pages/index.liquid
Sync or deploy. The Homepage title is now displayed in your browser's title bar or tab.
Add
Congratulations! You have injected dynamic content into a layout. Now you can learn how to reuse code across multiple pages using partials: Reusing Code Across Multiple Pages
Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.