Tweak to Musings Templates for License Info

Following the lead of Sam Ruby:

   http://intertwingly.net/blog/2007/11/11/Making-Rights-Declarations-Easier-To-Find
This commit is contained in:
Jacques Distler 2007-11-11 16:58:04 -06:00
parent da56f78d70
commit eb2ca9a7d4
2 changed files with 51 additions and 3 deletions

View File

@ -20,6 +20,10 @@ a:visited {
color: #555;
}
a[rel~='license'] {
text-decoration: none;
}
h1 {
font-size: 1.75em;
text-transform: uppercase;
@ -294,7 +298,7 @@ div.permalink:hover a {
/* Musings/String Coffee Table */
math[display=block] {overflow:auto;}
math { white-space: nowrap }
.eqno {float:right}
.numberedEq span, .eqno {float:right}
merror {display:inline;font-size:1em;}
img.mathlogo, img.svglogo {
float:right;
@ -315,6 +319,12 @@ table.plaintable {border-collapse:collapse;}
text-align:center;
margin-left:30px;
}
.centeredfigure {
position:relative;
margin:auto;
text-align:center;
}
.figurecaption {color:#630;}
/* Bosker Blog */
p.center {text-align:center}

View File

@ -190,15 +190,53 @@
<!-- entry footer -->
<xsl:text>&#10;</xsl:text>
<div class="permalink">
<xsl:if test="atom:link[@rel='license'] or
atom:source/atom:link[@rel='license'] or
atom:rights or atom:source/atom:rights">
<a>
<xsl:if test="atom:source/atom:link[@rel='license']/@href">
<xsl:attribute name="rel">license</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="atom:source/atom:link[@rel='license']/@href"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="atom:link[@rel='license']/@href">
<xsl:attribute name="rel">license</xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="atom:link[@rel='license']/@href"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="atom:source/atom:rights">
<xsl:attribute name="title">
<xsl:value-of select="atom:source/atom:rights"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="atom:rights">
<xsl:attribute name="title">
<xsl:value-of select="atom:rights"/>
</xsl:attribute>
</xsl:if>
<xsl:text>&#169;</xsl:text>
</a>
<xsl:text> </xsl:text>
</xsl:if>
<a href="{atom:link[@rel='alternate']/@href}" class="permalink">
<xsl:choose>
<xsl:when test="atom:author/atom:name">
<xsl:text>by </xsl:text>
<xsl:if test="not(atom:link[@rel='license'] or
atom:source/atom:link[@rel='license'] or
atom:rights or atom:source/atom:rights)">
<xsl:text>by </xsl:text>
</xsl:if>
<xsl:value-of select="atom:author/atom:name"/>
<xsl:text> at </xsl:text>
</xsl:when>
<xsl:when test="atom:source/atom:author/atom:name">
<xsl:text>by </xsl:text>
<xsl:if test="not(atom:link[@rel='license'] or
atom:source/atom:link[@rel='license'] or
atom:rights or atom:source/atom:rights)">
<xsl:text>by </xsl:text>
</xsl:if>
<xsl:value-of select="atom:source/atom:author/atom:name"/>
<xsl:text> at </xsl:text>
</xsl:when>