Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #305
This explanation is a bit hand-wavy, because I still can't follow the logic exactly. I find it hard to debug the flow of things in Jekyll because, while there's a
--trace
flag, the trace seems to be just the under-the-hood Ruby code, and not e.g. "you used this_include
in this markdown file on this line, which then used this other_include
, which then ran this Ruby filter, etc.".But in general:
Certain nested content (I think within the
post-excerpt
hiddendata-search
attribute) ended up making its way torelative_url
incontent.html
(which should just be a url), but only in certain rare cases where the peculiarity of the regex matching in thesection
component didn't prevent it.section
params incontent.html
to non-greedy, as they should've always beensection
params tocontent.html
fromparam: value;
to<param>value</param>
. this should reduce the chances of incorrect parsing, because one of the params is a URL, which can have;
characters in them, which would confuse the old format.| Lab Website Template
when it should just beLab Website Template
because the page title is""
post-excerpt
data-search
attribute, as it always should've been. is part of the main bug fix of this PR, but also will reduce false-positive search matches, because without it,data-search
contains e.g. singlep
characters leftover from<p>
tags. nowdata-search
should truly only be the content of the post.While not fully understanding the full flow of the root issue here, I think I've added enough safety mechanisms in enough spots to prevent similar issues from occurring in the future.
New template version checklist: