From 3a6b18e544719456be8437570e700c355a1b60e1 Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Sat, 6 May 2017 12:42:27 +0100 Subject: [PATCH] Correct selection of mentioning posts --- _layouts/post.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_layouts/post.html b/_layouts/post.html index 1b61ffb..c17c113 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -38,9 +38,10 @@
{% 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 %}