aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-11-12 21:33:04 -0500
committertdro <tdro@noreply.example.com>2022-11-12 21:33:04 -0500
commite8d6280abb4b7cdfc03bec80af6506399e5fdf51 (patch)
tree8dcda04eb178a121e3427efb0d9720b44cafa8d8
parente020e2d96e8e54aa283cec878da13fc783a94534 (diff)
downloadcanory-e8d6280abb4b7cdfc03bec80af6506399e5fdf51.tar.gz
canory-e8d6280abb4b7cdfc03bec80af6506399e5fdf51.tar.bz2
canory-e8d6280abb4b7cdfc03bec80af6506399e5fdf51.zip
Makefile: Quick check xslt
Max version of 1.1 supported by xsltproc
-rw-r--r--Makefile5
-rw-r--r--shell.nix1
-rw-r--r--themes/default/layouts/_default/home.xslt.xsl2
3 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5701ff7..f438eb9 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,7 @@ server:
test:
make test-html
+ make test-xsl
test-html:
validatornu \
@@ -33,6 +34,10 @@ test-css:
validatornu --css \
assets/css/default.css
+test-xsl:
+ xsltproc \
+ public/rss.xsl
+
icons:
rm -rf static/icons
mkdir -p static/icons/feather static/icons/tabler
diff --git a/shell.nix b/shell.nix
index 7b54486..76d3906 100644
--- a/shell.nix
+++ b/shell.nix
@@ -62,6 +62,7 @@ in mkShellPure {
pkgs.entr
pkgs.git
pkgs.gnumake
+ pkgs.libxslt
pkgs.php
pkgs.subversion
pkgs.yj
diff --git a/themes/default/layouts/_default/home.xslt.xsl b/themes/default/layouts/_default/home.xslt.xsl
index 8595c8e..a97ad0b 100644
--- a/themes/default/layouts/_default/home.xslt.xsl
+++ b/themes/default/layouts/_default/home.xslt.xsl
@@ -4,7 +4,7 @@
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
- version="3.0"
+ version="1.1"
>
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">