Sha256: 70eddaef1b52b72b4767eb6df84fea61ada36460358f4ef4cd770c66c6e8a681

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

module Middleman
  module Blog
    module Similar
      module BlogArticleExtensions
        def similar_articles
          if !@similar_articles && (engine = app.similarity_engine)
            @similar_articles = engine.new(self).similar_articles
          end
          @similar_articles || []
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
middleman-blog-similar-1.0.0 lib/middleman-blog-similar/blog_article_extensions.rb