entrytitle - Puts entry title in page title….¶
Summary¶
If Pyblosxom is rendering a single entry (i.e. entry_list has 1 item in it),
then this populates the entry_title
variable for the header template.
Install¶
This plugin comes with Pyblosxom. To install, do the following:
- Add
Pyblosxom.plugins.entrytitle
to theload_plugins
list of yourconfig.py
file. - Configure as documented below.
Configuration¶
To use, add the entry_title
variable to your header template in
the <title>
area.
Example:
<title>$(blog_title)$(entry_title)</title>
The default $(entry_title)
starts with a ::
and ends with the
title of the entry. For example:
:: Guess what happened today
You can set the entry title template in the configuration properties
with the entry_title_template
variable:
config["entry_title_template"] = ":: %(title)s"
Note
%(title)s
is a Python string formatter that gets filled in with
the entry title.
License¶
Plugin is distributed under license: MIT