summaryrefslogtreecommitdiff
path: root/.config/pancake/unclutter/hacker-news.xsl
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-12-29 06:25:00 +0300
committerdefanor <defanor@uberspace.net>2017-12-29 06:25:00 +0300
commitcdfc88c3fbe175e55390612971960c5b0061f224 (patch)
tree73512e3c71d8c8b5be07591713c8a79a860b4e5b /.config/pancake/unclutter/hacker-news.xsl
parent032ac6aa1f5297a334d51efc5ceb0109b3ad6197 (diff)
Remove uncluttering XSLTs
They are included into pancake now
Diffstat (limited to '.config/pancake/unclutter/hacker-news.xsl')
-rw-r--r--.config/pancake/unclutter/hacker-news.xsl33
1 files changed, 0 insertions, 33 deletions
diff --git a/.config/pancake/unclutter/hacker-news.xsl b/.config/pancake/unclutter/hacker-news.xsl
deleted file mode 100644
index 0f8c352..0000000
--- a/.config/pancake/unclutter/hacker-news.xsl
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output method="html" indent="yes"/>
- <xsl:template match="/">
- <html>
- <body>
- Hacker News
- <xsl:for-each select="//td[@class='title' or @class='subtext']">
- <xsl:choose>
- <xsl:when test="@class = 'title'">
- <xsl:variable name="uri" select="a/@href"/>
- <xsl:if test="$uri!=''">
- <br />
- <br />
- <a href="{$uri}" >
- <xsl:value-of select="a" />
- </a>
- </xsl:if>
- </xsl:when>
- <xsl:when test="@class = 'subtext'">
- <br/>
- <xsl:value-of select="span[@class='age']" />
- |
- <a href="{a[last()]/@href}">
- <xsl:value-of select="a[last()]" />
- </a>
- </xsl:when>
- </xsl:choose>
- </xsl:for-each>
- </body>
- </html>
- </xsl:template>
-</xsl:stylesheet>