mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 22:12:10 +00:00
ae8eb64a58
The JS-free infinite scroll that doesn't make you lose your place.
26 lines
943 B
Text
26 lines
943 B
Text
# Filter false positives from the .messages entry of Nu Validator output
|
|
.messages |= map(
|
|
. | select(
|
|
.type == "error" and
|
|
(
|
|
( # See https://github.com/w3c/css-validator/issues/361
|
|
.message == "CSS: Parse Error."
|
|
and .extract == "){outline:none}}@media(prefers"
|
|
and .hiliteLength == 1
|
|
)
|
|
or
|
|
( # See https://github.com/validator/validator/issues/1166
|
|
.message == "Attribute “media” not allowed on element “meta” at this point."
|
|
and (.extract | test(" name=\"theme-color\""))
|
|
)
|
|
or
|
|
( # see https://github.com/w3c/css-validator/issues/369
|
|
.message == "CSS: “contain-intrinsic-size”: Property “contain-intrinsic-size” doesn't exist."
|
|
)
|
|
or
|
|
( # the search page has raw templates, let those slide. I validate the final dynamic search page manually.
|
|
.url | test ("/search/index.")
|
|
)
|
|
) | not
|
|
)
|
|
) | del(..|select(. == [])) | del(..|select(. == {})) | select(. != null)
|