Package: nanoblogger Version: 3.2.3-1 Severity: wishlist Tags: patch In the (default) nanoblogger templates, every <head> contains the following <link> tag:
<link rel="shortcut icon" href="${BASE_URL}images/favicon.ico" />
This hard-coded shortcut icon could be replaced with a configuration
setting, and referenced within each template.
The attached patch makes this change to the default configuration and
templates.
-- System Information:
Debian Release: 3.1
-- no debconf information
--
\ "To be is to do" -- Plato |
`\ "To do is to be" -- Aristotle |
_o__) "Do be do be do" -- Sinatra |
Ben Finney <[EMAIL PROTECTED]>
--- orig/default/blog.conf
+++ mod/default/blog.conf
@@ -24,6 +24,9 @@
# Stylesheet used for your weblog (should be relative link).
BLOG_CSS="styles/nb_default.css"
+# Shortcut icon for your weblog (should be relative link).
+BLOG_ICON="images/favicon.ico"
+
# Action to perform on links to entries (e.g. run a server-side script)
# Must be activated in templates.
BLOG_URL_ACTION=""
--- orig/default/templates/category_archive.htm
+++ mod/default/templates/category_archive.htm
@@ -7,7 +7,7 @@
<title>$BLOG_TITLE: $NB_ArchiveTitle Archives</title>
<link rel="stylesheet" href="${BASE_URL}$BLOG_CSS" type="text/css" />
-<link rel="shortcut icon" href="${BASE_URL}images/favicon.ico" />
+<link rel="shortcut icon" href="${BASE_URL}$BLOG_ICON" />
$NB_RSS2AltLink
$NB_RSSAltLink
</head>
--- orig/default/templates/main_index.htm
+++ mod/default/templates/main_index.htm
@@ -10,7 +10,7 @@
<title>$BLOG_TITLE</title>
<link rel="stylesheet" href="${BASE_URL}$BLOG_CSS" type="text/css" />
-<link rel="shortcut icon" href="${BASE_URL}images/favicon.ico" />
+<link rel="shortcut icon" href="${BASE_URL}$BLOG_ICON" />
$NB_AtomAltLink
$NB_RSS2AltLink
$NB_RSSAltLink
--- orig/default/templates/makepage.htm
+++ mod/default/templates/makepage.htm
@@ -8,7 +8,7 @@
<title>$BLOG_TITLE: $NB_EntryTitle</title>
<link rel="stylesheet" href="${BASE_URL}$BLOG_CSS" type="text/css" />
-<link rel="shortcut icon" href="${BASE_URL}images/favicon.ico" />
+<link rel="shortcut icon" href="${BASE_URL}$BLOG_ICON" />
</head>
--- orig/default/templates/month_archive.htm
+++ mod/default/templates/month_archive.htm
@@ -10,7 +10,7 @@
<title>$BLOG_TITLE: $NB_ArchiveTitle Archives</title>
<link rel="stylesheet" href="${BASE_URL}$BLOG_CSS" type="text/css" />
-<link rel="shortcut icon" href="${BASE_URL}images/favicon.ico" />
+<link rel="shortcut icon" href="${BASE_URL}$BLOG_ICON" />
$NB_AtomAltLink
$NB_RSS2AltLink
$NB_RSSAltLink
--- orig/default/templates/permalink.htm
+++ mod/default/templates/permalink.htm
@@ -11,7 +11,7 @@
<title>$BLOG_TITLE: $NB_EntryTitle</title>
<link rel="stylesheet" href="${BASE_URL}$BLOG_CSS" type="text/css" />
-<link rel="shortcut icon" href="${BASE_URL}images/favicon.ico" />
+<link rel="shortcut icon" href="${BASE_URL}$BLOG_ICON" />
$NB_AtomAltLink
$NB_RSS2AltLink
$NB_RSSAltLink
signature.asc
Description: Digital signature

