Download

Introduction - partials

Partials are common fragments of your website which are placed in separate files for easy reuse.

They are located in the partials directory of your theme.

Partial is loaded using the following syntax:

{{> header}}

The above code loads the partials/header.hbs file.

Every Publii theme uses at least 4 partials:

The menu.hbs and pagination.hbs are optional for themes as they are defined in Publii and these default files are used if these files don't exist in the theme.

You can also define your custom partials - they should also be placed in the partials directory.

What are you waiting for?

Start building your site today.

  1. 1 Download Publii
  2. 2 Write your content
  3. 3 Publish your site
Create website