RSS feed
<< Insert the save date in Word | Home | Cock out rockout >>

Pebble favicon

This change allows you to specify a favicon on your pebble 2.1 blog. I simply make the change described below and add the following property in the "Properties" box on the plugins page.

blog.icon=http://www.qicboy.com/themes/user-default/assets/favicon.ico

The following is a diff of required changes to to the pebble webapp.

--- $CATALINA_HOME/webapps/pebble/WEB-INF/tags/page.tag.rel	2007-05-14 19:58:18.000000000 -0700
+++ $CATALINA_HOME/webapps/pebble/WEB-INF/tags/page.tag	2007-06-07 16:23:41.439391309 -0700
@@ -15,10 +15,14 @@
     <meta http-equiv="Content-Type" content="text/html; charset=${blog.characterEncoding}"/>
     <meta name="description" content="${blog.name}" />
     <meta name="abstract" content="${blog.description}" />
     <meta name="author" content="${blog.author}" />
     <meta name="generator" content="Pebble (http://pebble.sourceforge.net)" />
+    <c:set var="favicon" value='${pluginProperties.properties["blog.icon"]}' />
+    <c:if test="${not empty favicon}">
+    <link rel="shortcut icon" href="${favicon}" type="image/x-icon" />
+    </c:if>
     <title><c:choose><c:when test="${empty title}">${blog.name}</c:when><c:otherwise>${title} - ${blog.name}</c:otherwise></c:choose></title>
     <link rel="alternate" type="application/rss+xml" title="RSS" href="${blog.url}rss.xml" />
     <link rel="alternate" type="application/rdf+xml" title="RDF" href="${blog.url}rdf.xml" />
     <link rel="alternate" type="application/atom+xml" title="Atom" href="${blog.url}atom.xml" />
Tags :



Add a comment Send a TrackBack
Home