Cosmetic changes: get rid of an unnecessary <p>, and add in instructions

to tell Google not to index the results.
This commit is contained in:
Sam Ruby 2006-08-16 19:51:27 -04:00
parent 2a7e7b83df
commit de8c84d11a
2 changed files with 6 additions and 2 deletions

View File

@ -54,10 +54,10 @@
<div class="content">
<xsl:choose>
<xsl:when test="atom:content">
<p><xsl:copy-of select="atom:content/*"/></p>
<xsl:copy-of select="atom:content/*"/>
</xsl:when>
<xsl:otherwise>
<p><xsl:copy-of select="atom:summary/*"/></p>
<xsl:copy-of select="atom:summary/*"/>
</xsl:otherwise>
</xsl:choose>
</div>

View File

@ -21,6 +21,10 @@ def splice(configFile):
doc = minidom.parseString('<feed xmlns="http://www.w3.org/2005/Atom"/>')
feed = doc.documentElement
# insert Google/LiveJournal's noindex
feed.setAttribute('indexing:index','no')
feed.setAttribute('xmlns:indexing','urn:atom-extension:indexing')
# insert feed information
createTextElement(feed, 'title', config.name())