summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Ruby <rubys@intertwingly.net>2011-02-11 07:57:50 -0500
committerSam Ruby <rubys@intertwingly.net>2011-02-11 07:57:50 -0500
commit6468d23e7396d593599b6d38eebf70b1d9f294e9 (patch)
tree82c1f5d7c1cd4cae725614a383c08e0cff70a96a
parent68d8233010efd671f4c94b128b761132fac6a366 (diff)
downloadplanetpixels-6468d23e7396d593599b6d38eebf70b1d9f294e9.tar.gz
planetpixels-6468d23e7396d593599b6d38eebf70b1d9f294e9.tar.bz2
Make use of favicon specified in the config file
-rw-r--r--themes/asf/index.html.xslt11
1 files changed, 8 insertions, 3 deletions
diff --git a/themes/asf/index.html.xslt b/themes/asf/index.html.xslt
index 856192d..b574aac 100644
--- a/themes/asf/index.html.xslt
+++ b/themes/asf/index.html.xslt
@@ -193,9 +193,14 @@
<!-- entry title -->
<xsl:text>&#10;</xsl:text>
<h3>
- <xsl:if test="atom:source/atom:icon">
- <img src="{atom:source/atom:icon}" class="icon"/>
- </xsl:if>
+ <xsl:choose>
+ <xsl:when test="atom:source/atom:icon">
+ <img src="{atom:source/atom:icon}" class="icon"/>
+ </xsl:when>
+ <xsl:when test="atom:source/planet:favicon">
+ <img src="{atom:source/planet:favicon}" class="icon"/>
+ </xsl:when>
+ </xsl:choose>
<a>
<xsl:if test="atom:source/atom:link[@rel='alternate']/@href">
<xsl:attribute name="href">