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:
parent
65130f85c2
commit
af1f494c29
1 changed files with 1 additions and 13 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue