Skip to content

Commit effcee8

Browse files
committed
cont
1 parent b4a7bd9 commit effcee8

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

stylesheets/github/github2html.xsl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,17 @@ Example: curl -s "https://github.com/lindenb/jvarkit/wiki/SamJS" | xsltproc -\-
210210

211211

212212
<xsl:template match="a[@href]">
213+
<xsl:choose>
214+
<xsl:when test="starts-with(@href,'#') or string-length(normalize-space(.)) = 0">
215+
<xsl:apply-templates/>
216+
</xsl:when>
217+
<xsl:otherwise>
213218
<a>
214219
<xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
215220
<xsl:apply-templates/>
216221
</a>
222+
</xsl:otherwise>
223+
</xsl:choose>
217224
</xsl:template>
218225

219226

stylesheets/instagram/instagram2html.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
<xsl:text> by </xsl:text>
3535
<xsl:element name="a">
3636
<xsl:attribute name="href">
37-
<xsl:value-of select="concat('https://www.instagram.com/',substring-before(head/meta[@property='og:title']/@content,' '),'/')"/>
37+
<xsl:value-of select="concat('https://www.instagram.com/',substring-before(substring-after(head/meta[@name='description']/@content,'by @'),' '),'/')"/>
3838
</xsl:attribute>
39-
<xsl:value-of select="concat('@',substring-before(head/meta[@property='og:title']/@content,' '))"/>
39+
<xsl:value-of select="concat('@',substring-before(substring-after(head/meta[@name='description']/@content,'by @'),' '))"/>
4040
</xsl:element>
4141
<xsl:text>. </xsl:text>
4242
<xsl:value-of select="$today"/>

stylesheets/reddit/rgd.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
My drawing PASTEURL
3131

32-
[TB](http://tyeul.tumblr.com/)|[DA](http://yokofakun.deviantart.com/)|[FB](https://www.facebook.com/kakaheska)|[FL](https://www.flickr.com/photos/lindenb/)|[PT](http://www.pinterest.com/yokofakun/drawings/)|[IS](https://www.instagram.com/yokofakun/)
32+
[IG](https://www.instagram.com/yokofakun/)|[TU](http://tyeul.tumblr.com/)|[DA](http://yokofakun.deviantart.com/)|[FB](https://www.facebook.com/kakaheska)|[PT](http://www.pinterest.com/yokofakun/drawings/)
3333

3434
</xsl:text>
3535

stylesheets/util/mod.drawing.xsl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
<xsl:template name="my-links">
2929
<div>
30+
<a href="https://www.instagram.com/yokofakun/">Instagram</a>
31+
<xsl:text> </xsl:text>
3032
<a href="http://tyeul.tumblr.com/">Tumblr</a>
3133
<xsl:text> </xsl:text>
3234
<a href="http://yokofakun.deviantart.com/">DeviantArt</a>
@@ -40,6 +42,6 @@
4042
</xsl:template>
4143

4244

43-
<xsl:variable name="commontags">drawing sketch illustration gimp onedrawingaday portrait dessin femme fille art retrato face visage artwork draw sketchaday dailydrawing sketch_daily<xsl:if test="number(x:month-in-year())=10"> inktober</xsl:if></xsl:variable>
45+
<xsl:variable name="commontags">drawing sketch illustration gimp onedrawingaday portrait dessin femme fille art retrato face visage artwork draw sketchaday dailydrawing sketch_daily<xsl:if test="number(x:month-in-year())=10"> inktober inktober<xsl:value-of select="x:year()"/></xsl:if></xsl:variable>
4446

4547
</xsl:stylesheet>

0 commit comments

Comments
 (0)