RubyGems Navigation menu

jekyll-related-posts 0.1.2

Proper related posts plugin for Jekyll - uses document correlation matrix on TF-IDF (optionally with Latent Semantic Indexing). Each document is tokenized and stemmed, every word found is treated as keyword for analysis (except for some stop words). TF-IDF matrix for the whole site is calculated (including extra provided weights), then if given accuraccy is lower than 1.0, LSI algorithm is used to compute new simplified vector space. Document correlation matrix is created using dot product of the matrix and its transpose. For each of the post' related documents are inserted into priority queue (sorted by score from document correlation matrix), assuming the score is greater than minimal required score. Selected few bests related posts are retrieven from the queue. Liquid template for each post is rendered and <related-posts /> is replaced with the outcomes of algorithm.


  1. 0.1.2 - October 23, 2016 (10 KB)
  2. 0.1.1 - November 13, 2015 (10 KB)
Show all versions (3 total)

Runtime Dependencies (8):

Development Dependencies (1):

  • bundler ~> 1.6
  • Owners:


    • Amadeusz Juskowiak

    SHA 256 checksum:


    Total downloads 9,312

    For this version 5,075

    = Copy to clipboard Copied!




    Required Ruby Version: >= 0