_layouts/post.html in jekyll-theme-bootstrap-rtl-0.1.4.3 vs _layouts/post.html in jekyll-theme-bootstrap-rtl-0.1.4.4
- old
+ new
@@ -32,9 +32,21 @@
{% if page.previous %}
<li class="previous"><a href="{{ page.previous.url | absolute_url }}"><span aria-hidden="true">→</span> {{ page.previous.title }}</a></li>
{% endif %}
</ul>
</nav>
+
+ <hr>
+ {% if site.related_posts.size >= 1 %}
+ <div>
+ <h3>مطالب مرتبط</h3>
+ <ul>
+ {% for related_post in site.related_posts limit: 5 %}
+ <li><a href="{{ related_post.url }}">{{ related_post.title }}</a></li>
+ {% endfor %}
+ </ul>
+ </div>
+ {% endif %}
{% if site.disqus %}
{% include disqus.html %}
{% endif %}