Ole B¶
Ole B is a bright, simple theme based on Ole Begemann’s design for http://oleb.net, created with his permission. The theme was written from scratch by Tyler Butler using Ole’s site as a reference.
Note
By default Ole B uses several fonts available at TypeKit. These fonts are available as part of TypeKit’s trial plan.
Settings¶
Ole B supports the following settings which can be configured using the
THEME_SETTINGS
setting.
comments
(string)- Set this setting to either
disqus
orintensedebate
to enable comments on your site. Comments are off by default. Disqus or Instense Debate are supported comment systems. Be sure to also set thecomments_account
setting properly as well. comments_account
(string)- Both Disqus and Intense Debate require an account ID in order to associate comments properly with your site. Set this setting to the account ID for your respective comment account.
simple_search
(bool)A boolean indicating whether simple search should be enabled for the site. Defaults to True.
Note that if you have customized your sidebar, you must include the
_search.html
snippet in your sidebar file or the search box will not be visible. See Snippets for more information.New in version 0.4.0.
typekit_id
(string)- The ID of the TypeKit kit that should be used. Ole B uses specific fonts that should be included in the kit.
twitter_id
(string)The username of the Twitter user whose feed should be shown in the sidebar. Defaults to tylerbutler if not provided.
Deprecated since version 0.5.0: This setting is obsolete and ignored. The Tweet library has been removed from Engineer. See the Release Notes for more information.
tweet_count
(int)The number of tweets to include in the Twitter sidebar. Defaults to 4 if not provided.
Deprecated since version 0.5.0: This setting is obsolete and ignored. The Tweet library has been removed from Engineer. See the Release Notes for more information.
Templates¶
Required Templates and Fragments¶
No templates are strictly required for this theme beyond the base Template Fragments that all Engineer sites
will likely want to provide. In particular, users of the Ole B theme will probably want to create
_sidebar.html
and _primary_nav.html
templates.
See also
Inheritable Templates¶
Ole B includes several base templates that sites can inherit from to create Template Pages.
template_page_simple
- A simple template page layout that includes the default site sidebar.
Template Fragments¶
Ole B does not support any additional Template Fragments beyond those available for all Engineer sites.
Snippets¶
OleB provides some small snippets that can be included in the sidebar of your site. These snippets are designed
to be used in the sidebar, so using them is as simple as including them in your site’s _sidebar.html
template fragment. In order to maintain maximum compatibility with themes that might not provide these same widgets,
you should specify ignore missing
on the include
directive.
For example, the Engineer sample site includes these widgets like so:
<section>
<p>Welcome to the Engineer sample site.</p>
<hr/>
<nav>
<ul>
<li><a href="{{ urlname('about') }}">about</a></li>
<li><a href="{{ urlname('themes') }}">themes</a></li>
</ul>
</nav>
</section>
{% include 'snippets/_search.html' ignore missing %}
{% include 'snippets/_feed_links.html' ignore missing %}
The following snippets are available:
snippets/_feed_links.html
- Adds a link to your RSS feed.
snippets/_search.html
- Adds a search box to your site sidebar.
Manifest¶
name: 'Ole Begemann'
id: oleb
description: "A bright design based on Ole Begemann's oleb.net. Used with permission."
author: 'Tyler Butler <tyler@tylerbutler.com>'
website: 'http://tylerbutler.com'
license: 'N/A'
use_precompiled_styles: no
template_dirs:
- '../_shared/templates/'
copy_content:
- ['../_shared/images/rss/04.png', 'images/rss.png']
settings:
typekit_id: ~
comments: ~
comments_account: ~
simple_search: yes
bigfoot:
enabled: no