🐛 fix(sitemap): use the base url for JS/CSS loading

Related: #221
main
welpo 1 year ago
parent 1df3f7f89c
commit c8a1705b51
No known key found for this signature in database
GPG Key ID: A2F978CF4EC1F5A6

@ -4,12 +4,15 @@
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9">
<xsl:output method="html" encoding="UTF-8" indent="yes" />
<!-- The base URL is assumed to be the first URL in the sitemap. -->
<xsl:variable name="baseUrl" select="(sitemap:urlset/sitemap:url)[1]/sitemap:loc"/>
<xsl:template match="/sitemap:urlset">
<html>
<head>
<title>Sitemap</title>
<link rel="stylesheet" href="/main.css"/>
<script src="/js/sortTable.min.js" defer="defer"></script>
<link rel="stylesheet" href="{$baseUrl}main.css"/>
<script src="{$baseUrl}js/sortTable.min.js" defer="defer"></script>
</head>
<body>
<div class="full-width">

Loading…
Cancel
Save