title: Related Posts In Ghost Blog - Excluding Current Post
body: <p>I'm using Ghost as blogging platform. When a user is reading a post I would like to show some related posts. </p>
  
  <pre><code>{{#foreach tags limit="1"}}
      {{#get "posts" filter="tags:{{slug}}" limit="6" include="author,tags" as |article|}}
          {{#foreach article}}
            ....
          {{/foreach}}
      {{/get}}
  {{/foreach}}
  </code></pre>
  
  <p>I managed to get related posts, but I'm having issues deleting the current post from the results.</p>
  
  <p>According to the Ghost Documentation I should be able to use this addition to the filter:</p>
  
  <pre><code>"+id:-{{post.id}}"
  </code></pre>
  
  <p>Like this:</p>
  
  <pre><code>{{#get "posts" filter="tags:{{slug}}+id:-{{post.id}}" limit="6" include="author,tags" as |article|}}
  </code></pre>
  
  <p>Unfortunately this is not working, {{post.id}} doesn't even prints out anything regardless the scope I am in. Simply using {{id}} instead of {{post.id}} I'm getting a value but it's the tags ID so that's not correct.</p>
  
  <p>I managed to access my post ID inside the tag scope this way {{../id}} but I cannot use it in the filter this way, it's not working either.</p>
  
  <p>Any idea on how to solve it would be appreciated.</p>