Page Breaks

by jonathan.is

Sometimes you may want to export to a pdf, and have page breaks on top-level headers.

Open the themes folder, and edit the css for whatever them you want to include

@media print {
  h1 {
    page-break-before: always;
  }
  h1:first-of-type {
    page-break-before: avoid;
  }
}

Now when exporting, a new page will be created before each h1 element, except the first one.