From ef229b540d4585db2183b8e04c531d4e8eaf09c8 Mon Sep 17 00:00:00 2001 From: Filip ZybaƂa Date: Wed, 15 Apr 2020 11:53:07 +0200 Subject: Add charset to metadata. --- plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/base/src/main/kotlin') diff --git a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt index 205897a4..23ba0676 100644 --- a/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt +++ b/plugins/base/src/main/kotlin/renderers/html/HtmlRenderer.kt @@ -306,7 +306,7 @@ open class HtmlRenderer( open fun buildHtml(page: PageNode, resources: List, content: FlowContent.() -> Unit) = createHTML().html { head { - meta(name = "viewport", content = "width=device-width, initial-scale=1") + meta(name = "viewport", content = "width=device-width, initial-scale=1", charset = "UTF-8") title(page.name) with(resources) { filter { it.substringBefore('?').substringAfterLast('.') == "css" } -- cgit