Skip to content

Conversation

@marcoroth
Copy link
Owner

@marcoroth marcoroth commented Oct 14, 2025

This pull request updates the html-head-only-elements linter rule to allow head-only elements on the top-level, like:

<meta>
<link>
<base>
<title></title>
<style></style>

This is useful, when the content of <head> element in the layout is extracted to a partial, so that the partial itself doesn't contain the <head> element directly. This is now allowed.

@marcoroth marcoroth merged commit 59a4f5d into main Oct 14, 2025
7 checks passed
@marcoroth marcoroth deleted the html-head-only-improvements branch October 14, 2025 19:15
asilano pushed a commit to fac/herb that referenced this pull request Oct 21, 2025
This pull request updates the `html-head-only-elements` linter rule to
allow head-only elements on the top-level, like:

```html
<meta>
<link>
<base>
<title></title>
<style></style>
```

This is useful, when the content of `<head>` element in the layout is
extracted to a partial, so that the partial itself doesn't contain the
`<head>` element directly. This is now allowed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants