Skip to content

Style Documentation

taylordolan edited this page Jun 14, 2016 · 3 revisions

Style Documentation

Post Authors

At the beginning of the markup for each post, add this element:

<div data-author="[firstname]-[lastname]"></div>

The markup contains a script that will look for this element and fill in the author name and avatar. Doing it this way lets us give each post a different author while keeping the markup for author and post date where Tumblr wants it to be (in the main theme markup).

Formatting Code

Inline: <code class=“monospace”>[code here]</code>

Block: <pre class=“pre”><code class=“monospace”>[code here]</code></pre>

Note that code blocks will wrap by default. To disable wrapping, add .no-wrap to the <code> element and it will scroll horizontally.

Post Graphics

<img src=“[source]” class=“post-graphic” width=“[width]” height=“[height]”>

Truncating Posts

Add [[MORE]] on an empty line to set the point at which the post will be truncated on the blog’s main page.

Clone this wiki locally