kbits-theme-demo Demonstration of kbits-theme for Pelican
Atom · RSS

kbits-theme-demo Archives

Showing Article Authors

kbits-theme has two settings for controlling whether to show articles’ authors. They are useful if your site only has one author and you don’t want to slap your name all over everything.

The settings are:

SHOW_AUTHOR = True
Whether to show articles’ authors in article metadata tables
SHOW_AUTHOR_IN_LISTINGS = True
Whether …

Setting a Favicon

kbits-theme lets you configure a custom favicon for your site via the following theme settings:

FAVICON_URL
A URL pointing to an image to use as the site’s favicon. If the URL is relative (does not begin with either http:// or https://), then {{SITEURL}}/ is prepended to it.
FAVICON_TYPE
The …


Syntax Highlighting with reStructuredText

kbits-theme uses Pygments’ “default” style for code syntax highlighting. Let’s see some examples!

reStructuredText has a built-in directive for syntax highlighting, the “code” directive. Here’s what the output of that directive looks like in kbits-theme:

from itertools import compress

def subsets(xs, nonempty=False, proper=False):
    """
    Returns an …

Footer Text

You may have noticed the small, centered text at the bottom of every page on this site. This is the site’s footer. It can be set by assigning a string of HTML to the FOOTER_HTML Pelican setting; if FOOTER_HTML is not set, no footer is shown.




Article Metadata Tables

At the top of each article in a kbits-theme site, just underneath the article title, kbits-theme displays a table of the article’s metadata. (Look right above this paragraph for an example.) By default, the following fields are shown:

  • Date (labelled “Posted”)
  • Modified (if set)
  • Author(s)
  • Category
  • Tags (If …