Open albertoivo opened 5 years ago
Hello,
When I run my blog on Development Mode, the related posts are as expected. Only the posts with the same tags are shown.
tags
But when I push it to Production Mode, it doesn't work. The Related Posts section show the last posts instead of the related posts.
I installed the jekyll-tagging-related-posts with gem.
jekyll-tagging-related-posts
gem
My _config.yml:
_config.yml
plugins: - jekyll/tagging - jekyll-tagging-related_posts
And my HTML:
{% if site.related_posts.size >= 1 %} <div> <h3>Related Posts</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 %}
And My Post Header:
--- layout: post title: My Post Title category: Category A tags: [aaa, bbb, ccc] ---
What am I missing here? Can anybody help me, please?
Hello,
When I run my blog on Development Mode, the related posts are as expected. Only the posts with the same
tags
are shown.But when I push it to Production Mode, it doesn't work. The Related Posts section show the last posts instead of the related posts.
I installed the
jekyll-tagging-related-posts
withgem
.My
_config.yml
:And my HTML:
And My Post Header:
What am I missing here? Can anybody help me, please?