diff options
-rw-r--r-- | core/src/main/kotlin/renderers/HtmlRenderer.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/renderers/HtmlRenderer.kt b/core/src/main/kotlin/renderers/HtmlRenderer.kt index 901c25f5..e8c3a486 100644 --- a/core/src/main/kotlin/renderers/HtmlRenderer.kt +++ b/core/src/main/kotlin/renderers/HtmlRenderer.kt @@ -174,9 +174,9 @@ open class HtmlRenderer( head { title(page.name) with(resources) { - filter { it.substringAfterLast('.') == "css" } + filter { it.substringBefore('?').substringAfterLast('.') == "css" } .forEach { link(rel = LinkRel.stylesheet, href = page.root(it)) } - filter { it.substringAfterLast('.') == "js" } + filter { it.substringBefore('?').substringAfterLast('.') == "js" } .forEach { script(type = ScriptType.textJavaScript, src = it) { async = true } } } } |