• Overview
  • Transcript

2.11 Using Partials

Our theme is coming along nicely. But we've introduced a serious problem to our codebase: duplication. We have some of the same markup copied to multiple templates. In this lesson, I'll show you how to use partials to extract this duplicate markup into its own file and reference it anywhere we need it throughout our theme.