diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | xsl/common.xsl | 2 | ||||
-rw-r--r-- | xsl/layout.xsl | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -1,7 +1,7 @@ suffix = xhtml version = $(shell git rev-parse --short HEAD) -xsltproc=xsltproc --stringparam stylesheet style.min.css --stringparam version $(version) +xsltproc=xsltproc --stringparam stylesheet "$(shell cat style/style.min.css)" --stringparam version $(version) svg2png=rsvg-convert -f png fix_doctype=sed 's/ SYSTEM "about:legacy-compat"//' diff --git a/xsl/common.xsl b/xsl/common.xsl index 4722eb3..7ddf577 100644 --- a/xsl/common.xsl +++ b/xsl/common.xsl @@ -16,7 +16,7 @@ <xsl:variable name="filename" select="/s:html/@name" /> <xsl:variable name="title" select="document('../main.xml')/s:site/s:page[@filename = $filename]/@title" /> <xsl:param name="suffix" select="'.xml'" /> - <xsl:param name="stylesheet" select="'style.css'" /> + <xsl:param name="stylesheet" select="'@import url("style/style.css"'" /> <xsl:param name="version" select="''" /> <xsl:output method="xml" indent="no" encoding="utf-8" diff --git a/xsl/layout.xsl b/xsl/layout.xsl index d64aad3..b765006 100644 --- a/xsl/layout.xsl +++ b/xsl/layout.xsl @@ -18,7 +18,7 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width" /> <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:400,500,700,400italic" /> - <link rel="stylesheet" type="text/css" href="style/{$stylesheet}?{$version}" /> + <style><xsl:value-of select="$stylesheet"/></style> </head> <body> <header> |