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:
parent
da56f78d70
commit
eb2ca9a7d4
@ -20,6 +20,10 @@ a:visited {
|
|||||||
color: #555;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a[rel~='license'] {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 1.75em;
|
font-size: 1.75em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@ -294,7 +298,7 @@ div.permalink:hover a {
|
|||||||
/* Musings/String Coffee Table */
|
/* Musings/String Coffee Table */
|
||||||
math[display=block] {overflow:auto;}
|
math[display=block] {overflow:auto;}
|
||||||
math { white-space: nowrap }
|
math { white-space: nowrap }
|
||||||
.eqno {float:right}
|
.numberedEq span, .eqno {float:right}
|
||||||
merror {display:inline;font-size:1em;}
|
merror {display:inline;font-size:1em;}
|
||||||
img.mathlogo, img.svglogo {
|
img.mathlogo, img.svglogo {
|
||||||
float:right;
|
float:right;
|
||||||
@ -315,6 +319,12 @@ table.plaintable {border-collapse:collapse;}
|
|||||||
text-align:center;
|
text-align:center;
|
||||||
margin-left:30px;
|
margin-left:30px;
|
||||||
}
|
}
|
||||||
|
.centeredfigure {
|
||||||
|
position:relative;
|
||||||
|
margin:auto;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
.figurecaption {color:#630;}
|
||||||
|
|
||||||
/* Bosker Blog */
|
/* Bosker Blog */
|
||||||
p.center {text-align:center}
|
p.center {text-align:center}
|
||||||
|
@ -190,15 +190,53 @@
|
|||||||
<!-- entry footer -->
|
<!-- entry footer -->
|
||||||
<xsl:text> </xsl:text>
|
<xsl:text> </xsl:text>
|
||||||
<div class="permalink">
|
<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>©</xsl:text>
|
||||||
|
</a>
|
||||||
|
<xsl:text> </xsl:text>
|
||||||
|
</xsl:if>
|
||||||
<a href="{atom:link[@rel='alternate']/@href}" class="permalink">
|
<a href="{atom:link[@rel='alternate']/@href}" class="permalink">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test="atom:author/atom:name">
|
<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:value-of select="atom:author/atom:name"/>
|
||||||
<xsl:text> at </xsl:text>
|
<xsl:text> at </xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="atom:source/atom:author/atom:name">
|
<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:value-of select="atom:source/atom:author/atom:name"/>
|
||||||
<xsl:text> at </xsl:text>
|
<xsl:text> at </xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user