# NanoBlogger Weblog Config File - blog.conf
# Default configuration with sensible presets
# Last modified: 2010-02-14T22:01:41-05:00

# --- Main Preferences ---
#
# set default editor for your weblog (defaults to $EDITOR).
NB_EDITOR="$EDITOR"

# set default browser for previewing your weblog (defaults to $BROWSER)
NB_BROWSER="$BROWSER"

# maximum number of entries to query when query equals "max".
MAX_ENTRIES="10"

# date format used for a new entry (used by the "date" command).
# e.g. DATE_FORMAT="%Y-%m-%d %H:%M:%S"
DATE_FORMAT=""

# Date's locale (language) to display in (e.g. DATE_LOCALE="$LANG")
# NOTE: intentionally setting this as null causes it to be auto-filled
# with the default values.
DATE_LOCALE=""

# date command arguments (see date's man page).
DATE_ARGS=""

# set the full URL to your weblog (required for absolute links).
# e.g. BLOG_URL="http://weblog.user/~foo" ("/" gets appended automatically)
BLOG_URL=""

# stylesheet used for your weblog (should always be relative link).
BLOG_CSS="styles/nb_default.css"

# shortcut icon for your weblog (should always be relative link).
BLOG_ICON="images/favicon.ico"

# action to perform on links to entries (e.g. run a server-side script)
# NOTE: must be activated in templates.
# e.g. for here (relative path): BLOG_URL_ACTION="cgi-bin/cgicomment.pl?article="
# e.g. for templates: ${BASE_URL}$BLOG_URL_ACTION
BLOG_URL_ACTION=""

# set the Language (character encoding) used for your weblog.
BLOG_CHARSET="utf-8"

# set the mime type used for your weblog
# e.g. BLOG_MIMETYPE="text/html"
BLOG_MIMETYPE="text/html"

# set the timezone your weblog (should follow W3CDTF date format).
# if your system supports "date +%z", you can leave this blank.
# e.g. BLOG_TZD="-05:00"
BLOG_TZD=""

# title of your weblog.
BLOG_TITLE="My Weblog"

# description of your weblog.
BLOG_DESCRIPTION="news, diary, journal, whatever"

# default author of your weblog (defaults to $USER).
BLOG_AUTHOR=""

# contact information for your weblog.
# e.g. BLOG_CONTACT='<a href="mailto:foo@null.org">'$BLOG_AUTHOR'</a>'
BLOG_CONTACT=""

# --- Misc. Preferences ---
#
# command to run when previewing your weblog.
# used by the option and prompt for previewing (when set).
BLOG_PREVIEW_CMD="nb_browser $BLOG_DIR/index.html"

# command to run when publishing your weblog to a remote site.
# used by the option and prompt for publishing (when set).
BLOG_PUBLISH_CMD=""

# enable Interactive mode (classic behavior) - 0/1 = off/on.
BLOG_INTERACTIVE="0"

# show weblog build time statistics
SHOW_TIMES="0"

# set the query mode used for listing and managing entries. 
# defaults to max, but may be just about any valid query.
#QUERY_MODE="max"

# --- Link Preferences ---
#
# toggles display of directory index file in links (strongly suggested
# for local preview) - 0/1 = off/on
SHOW_INDEXFILE="1"

# show permanent links for each entry - 0/1 = off/on.
SHOW_PERMALINKS="1"

# show category links for each entry - 0/1 = off/on.
SHOW_CATLINKS="1"

# toggles between friendly and unfriendly (non-title based) links
# 1/0 = friendly/unfriendly.
FRIENDLY_LINKS="1"

# maximum title width (by characters) generated for "friendly" links.
# (defaults to 150)
MAX_TITLEWIDTH="150"

# enable absolute links (full path to domain/$BLOG_URL) - 0/1 = off/on.
# defaults to relative links, "0"
# NOTE: depends on $BLOG_URL in order to work properly.
ABSOLUTE_LINKS="0"

# --- Archive Preferences ---
#
# maximum number of entries to display for multiple pages
MAX_PAGE_ENTRIES="30"

# maximum number of entries to display for each category page
#MAX_CATPAGE_ENTRIES="$MAX_PAGE_ENTRIES"

# maximum number of entries to display for each month page
# NOTE: breaks target links unless day archives enabled
#MAX_MONTHPAGE_ENTRIES="$MAX_PAGE_ENTRIES"

# maximum number of entries to display for each main page
#MAX_MAINPAGE_ENTRIES="$MAX_PAGE_ENTRIES"

# sets the query for the main page, defaults to "max".
# NOTE: you can paginate the main page by setting this to "all" or
#       any query where the results are > MAX_MAINPAGE_ENTRIES.
#MAINPAGE_QUERY="max"

# build individual archives of each entry - 0/1 = off/on.
ENTRY_ARCHIVES="1"

# build month archives - 0/1 = off/on.
MONTH_ARCHIVES="1"

# build day archives (depends on MONTH_ARCHIVES) - 0/1 = off/on.
DAY_ARCHIVES="0"

# specify data to load for different archives - ALL or TITLE.
# ALL = full entry metadata (slow and bigger cache)
# TITLE = title metadata only (faster and smaller cache)
# 
# modify/create the category_entry.htm template accordingly.
CATARCH_DATATYPE="TITLE"
# modify/create month_entry.htm template accordingly.
MONTHARCH_DATATYPE="ALL"
# modify/create day_entry.htm template accordingly.
DAYARCH_DATATYPE="ALL"

# chronological order - 0/1 = normal/reverse.
CHRON_ORDER="1"

# set the file type for your weblog, defaults to "html".
# NOTE: changing this will require a complete update of the weblog.
#NB_FILETYPE="html"

# --- Plugin Preferences ---
#
# plugins directory, defaults to $NB_BASE_DIR/plugins.
# NOTE: intentionally setting this as null causes it to be auto-filled
# with the default values.
PLUGINS_DIR=""

# user plugins directory, defaults to $BLOG_DIR/plugins.
# NOTE: intentionally setting this as null causes it to be auto-filled
# with the default values.
USR_PLUGINSDIR=""

# toggle excerpting of entries
ENTRY_EXCERPTS="1" # 1/0 = on/off

# default entry text formatting (name of the text formatting plugin(s)).
# e.g. plugins/entry/format/autobr.sh = autobr
ENTRY_FORMAT="raw"

# default page text formatting (name of the text formatting plugin(s)).
# e.g. markdown = plugins/page/format/markdown.sh
#PAGE_FORMAT="raw" # defaults to raw

# maximum links to yearly archives (-1 = all)
MAX_YEARLINKS="12" # defaults to 12

# maximum links to monthly archives (-1 = all)
MAX_MONTHLINKS="12" # defaults to 12

# calendar plugin configuration
#CAL_CMD="cal"
CAL_ARGS=""

# tidy plugin configuration
#TIDY_CMD="tidy"
TIDY_HTML_ARGS="-asxhtml -n -utf8"
# used when verifying syndication feeds
TIDY_XML_ARGS="-xml -n -utf8 -wrap 0"

# markdown plugin configuration
#MARKDOWN_CMD="python -m markdown"
#MARKDOWN_OPTS="/dev/stdin"

# fortune plugin configuration
#FORTUNE_CMD=""
#FORTUNE_FILE=""

# --- Plugin: Syndication Preferences ---
#
# set the required URL for your weblog feeds.
# e.g. BLOG_FEED_URL="http://weblog.user/~foo" ("/" gets appended automatically)
BLOG_FEED_URL="http://localhost/please/edit/me"

# set the timezone used for weblog feeds, defaults to $BLOG_TZD.
BLOG_FEED_TZD="$BLOG_TZD"

# set the language for your RSS feeds.
BLOG_FEED_LANG="en-us"

# set the language for your Atom feeds.
# NOTE: requires different language code than RSS.
ATOM_FEED_LANG="en"

# set stylesheet for weblog feeds (path should be relative
# e.g. styles/feed.css).
BLOG_FEED_CSS="styles/feed.css"

# set a logo for weblog feeds. (path should be relative
# e.g. images/feedlogo.png).
BLOG_FEED_LOGO=""

# set an icon for weblog feeds (path should be relative
# e.g. images/feedicon.png).
# NOTE: Only RSS 2.0 seems to support this
BLOG_FEED_ICON=""

# enable/disable all category feeds - 0/1 = off/on.
CATEGORY_FEEDS="0"

# enable/disable*  Atom category feeds - 0/1 = off/on.
ATOM_CATFEEDS="0"

# enable/disable*  RSS 2.0 category feeds - 0/1 = off/on.
RSS2_CATFEEDS="0"

# enable/disable*  RSS 1.0 category feeds - 0/1 = off/on.
# requires rss.sh plugin from nanoblogger-extra
RSS_CATFEEDS="0"

# --- Plugin: Articles Preferences ---
#
# sets the articles directory (path must be relative)
# e.g. ARTICLES_DIR="articles articles/howtos notes" # will create three
# sections of articles.
# NOTE: defined directories are not automatically created for you.
#ARTICLES_DIR="" # defaults to articles

# default article text formatting (name of the text formatting plugin(s)).
# e.g. markdown = plugins/page/format/markdown.sh
ARTICLES_FORMAT="" # defaults to $PAGE_FORMAT

# --- Cache Preferences ---
#
# maximum number of entries to store in cache (-1 = all)
# TOTAL_ENTRIES=`grep -c "." $BLOG_DIR/data/master.db`
# MAX_CACHE_ENTRIES=`expr $TOTAL_ENTRIES \/ 2` # divides $TOTAL_ENTRIES
# MAX_CACHE_ENTRIES=`expr $MAX_ENTRIES \* 2` # multiplies $MAX_ENTRIES
MAX_CACHE_ENTRIES="$MAX_ENTRIES" # defaults to $MAX_ENTRIES

# set cache management to automatic (1) or manual (0)
BLOG_CACHEMNG="1" # defaults to automatic (1)

# --- Security Settings ---
#
# set temp directory (default is /tmp)
#NB_TEMP_DIR="$BLOG_DIR/.tmp"

# set default file permissions for newly created weblog files (defaults to
# user's current umask) - refer to umask command for further details.
#NB_UMASK="022"

