Modifying the Pattern Header & Footer

To add your own assets like JavaScript and CSS to your patterns' header and footer you need to modify two files:

  • ./source/_meta/_head.mustache
  • ./source/_meta/_foot.mustache

These files are added to every rendered pattern, "view all" page and style guide. To see your changes simply re-generate your site.

Important: Don't Remove Two Things...permalink

Do not remove the following two lines in these patterns:

  • a tag referencing patternLabHead in _head.mustache
  • a tag referencing patternLabFoot in _foot.mustache

Pattern Lab will not so mysteriously stop working if you do.