Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

1.3.0: Remove hardwired <meta> declaration

Compare
Choose a tag to compare
@sanity sanity released this 04 Dec 19:22
· 238 commits to master since this release
2860898

We have fixed a minor bug in Kweb where a meta tag was hardwired into all HTML documents. This meta tag should have been user-configurable, either through the DSL or the ViewportPlugin. The meta tag has now been removed.

This is what it was adding:

<head>
  ...
  <meta id="K_head" 
           name="viewport" 
           content="width=device-width, initial-scale=1.0">
  ...
</head>

This change should not have any effect on your website, as the values in the meta tag were the default values anyway.

However, if you do notice any adverse effects of the change you can use the ViewportPlugin with its default settings to add the meta tag back.

To do this use the following code:

import kweb.plugins.viewport.ViewportPlugin

Kweb(port = 1235, plugins = listOf(ViewportPlugin())) { // ...