The Tree of Widsdom

智慧の樹

Adding your own export scheme


Creating a new export scheme means creating new templates, new boilerplate, and changing the CSS code. The easiest way to changing the appearance of your blog is to use the Styles Dash. The next easiest is to go into the CSS files and change the code there.

But to make deep structural changes you’ll need to change the template and boilerplate notes as well.

Templates

To change the template scheme, select the bstMain note and hit ⌘C and then ⌘V. This will duplicate the container and its descendants. Now replace the prefix “bst” to something else in all the template names. Then, inside each template, replace “bst” with the new prefix. Then, select all the bstMain notes and set their $IsTemplate to false.

Then to make the new scheme the default, select normal_note and invoke the HTML Inspector. Then select the template named “***MainPage,” where *** is the three-character prefix for your new scheme.

Boilerplate

Now do the same thing with bsbMain. Duplicate the container and its descendants, replace the “bsb” prefix to another three-character string, and inside each note replace every “bsb” with the new prefix. Also, be sure to replace every “bst” inside the boilerplate notes with the new template prefix.

Power user tip
Use a text editor to replace the prefix. If your new prefix is three characters, it’s safe to do this—rich text formatting (which references string positions) will be preserved.

Once this is done, begin making your changes.