Correct selection of mentioning posts

This commit is contained in:
2017-05-06 12:42:27 +01:00
parent 59a3c879be
commit 3a6b18e544

View File

@@ -38,9 +38,10 @@
</section>
<section>
{% assign items = ''|split:'' %}
{% assign filename = page.url | remove: '/blog/' | replace: '/', '-' | remove: '.html' %}
{% assign filename = page.id | remove: '/blog/' | replace: '/', '-' %}
{% capture search %}url {{ filename }}{% endcapture %}
{% for p in site.posts %}
{% if p.content contains filename %}
{% if p.content contains search %}
{% assign items = items | push:p %}
{% endif %}
{% endfor %}