Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/de-souza/hugo-flex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorde-souza <43355143+de-souza@users.noreply.github.com>2020-03-17 15:14:29 +0300
committerde-souza <43355143+de-souza@users.noreply.github.com>2020-03-17 15:14:29 +0300
commitc676709c840914e57d4b5e2b9ec7bf2aadde93ac (patch)
treed470e727ec9567336633ef89e403c9c4d9f69385
parenta0926550b8d5aa07afe2edf2ea6777dea12f4a73 (diff)
Use cached partials in XSL stylesheet
-rw-r--r--assets/xml/base.tpl.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/assets/xml/base.tpl.xml b/assets/xml/base.tpl.xml
index 2c3e883..833fd73 100644
--- a/assets/xml/base.tpl.xml
+++ b/assets/xml/base.tpl.xml
@@ -1,4 +1,4 @@
-{{ `<?xml version="1.0" encoding="utf-8" ?>` | safeHTML }}
+{{ safeHTML `<?xml version="1.0" encoding="utf-8" ?>` }}
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" doctype-system="about:legacy-compat" />
<xsl:template match="/rss/channel">
@@ -12,7 +12,7 @@
{{ end }}
</head>
<body>
- {{ partial "banner.html" . }}
+ {{ partialCached "banner.html" . }}
<main>
<div class="u-wrapper">
<div class="u-padding">
@@ -27,7 +27,7 @@
</div>
</div>
</main>
- {{ partial "footer.html" . }}
+ {{ partialCached "footer.html" . }}
</body>
</html>
</xsl:template>