balupton/docpad — Issue #75: relations plugin not work?
Author: Ferrari
Created: 2011-10-10 10:57:49+00:00
State: open

I tried a little bits after v1.3.1 and found out that related posts might not work correctly.

I guess this is the problem:
return null if document.url is relatedDocument.url
The plugin based on document url to decide it's related posts, however, relations.plugin trigger on "parseFinished" event, but the docpad get the posts' url on "contextualizeFinished" step. Maybe it should change it's triggerEvent to "contextualizeFinished" or do not use "url" (Maybe post title would be ok, too)