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:
parent
2a7e7b83df
commit
de8c84d11a
@ -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>
|
||||
|
@ -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())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user