Permalink
Browse files

Tweak to Musings Templates for License Info

  • Loading branch information...
1 parent da56f78 commit eb2ca9a7d4a1054e02b3a5017b6c47dd78149731 @distler distler committed Nov 11, 2007
Showing with 51 additions and 3 deletions.
  1. +11 −1 themes/musings/default.css
  2. +40 −2 themes/musings/index.html.xslt
View
@@ -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}
@@ -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>

0 comments on commit eb2ca9a

Please sign in to comment.