1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-24 01:42:10 +00:00

Skip validating the search result page offline

That page contains raw Go templates. I should just validate the live
versions.
This commit is contained in:
Rohan Kumar 2022-07-13 22:10:15 -07:00
parent 65130f85c2
commit af1f494c29
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -15,19 +15,7 @@
)
or
( # the search page has raw templates, let those slide. I validate the final dynamic search page manually.
(.url | test ("/search/index."))
and (
(.message == "Text not allowed in element “ol” in this context.")
or
(.message == "Bad value “{{ .URL }}” for attribute “href” on element “a”: Illegal character in path segment: “{” is not allowed.")
or
(.message == "Bad value “{{ .URL }}” for attribute “cite” on element “q”: Illegal character in path segment: “{” is not allowed.")
)
and (
(.extract | test("{{"))
or
(.extract | test("}}"))
)
.url | test ("/search/index.")
)
) | not
)