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 %}