You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ContentModelEntryNode, use getIndexFile template method to set
this.indexFile (and not this.subtree.indexFile). Once the indexFile is
set and its content and frontmatter is parsed, continue calling other
template methods, importantly, getSubtreeMatchers.
After switching to use matcha expressions in matchers, they got out of
their function wrappers. So, if they wanted to refer to this properties
coming from front-matter, getSubtreeMatchers must have been called in
super after indexFile is parsed. This change does just that.
Setting this.indexFile instead of this.subtree.indexFile is for the
coherence. If indexFile remained under 'subtree', then it would be
confusing why its matcher is not in the getSubtreeMatchers. It feels
right to have it directly in 'this'.
Also add a missing edge-case to e2e-magazine: Uncategorized foldered
post with an aliased indexFile. Lack of this test so far was what
allowed this bug to hide so far.
<p>Adipisicing nesciunt ab quos eos nesciunt Nemo ab aliquid quod magnam eaque voluptatem. Possimus tenetur veniam nostrum magnam in? Ipsa atque cupiditate illum hic mollitia Soluta excepturi vel consequatur exercitationem.</p>
content: '<h1>Hey world</h1>\n\n<p>Adipisicing nesciunt ab quos eos nesciunt Nemo ab aliquid quod magnam eaque voluptatem. Possimus tenetur veniam nostrum magnam in? Ipsa atque cupiditate illum hic mollitia Soluta excepturi vel consequatur exercitationem.</p>',
918
+
context: {
919
+
collection: {
920
+
title: 'demos',
921
+
permalink: '/demos'
922
+
},
923
+
categories: []
924
+
},
925
+
links: {
926
+
nextPost: null,
927
+
previousPost: {
928
+
title: 'good-morning-world',
929
+
permalink: '/demos/good-morning-world.html'
930
+
}
931
+
}
932
+
},
909
933
{
910
934
title: 'good-morning-world',
911
935
maker: {title: 'Sir Tim Berners Lee',slug: 'tim'},
0 commit comments