mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
display related posts under each post & link
This commit is contained in:
parent
5c8d0c5884
commit
1ad1b7fe28
3
Gemfile
3
Gemfile
@ -6,6 +6,7 @@ gem 'jekyll', '1.5.1'
|
|||||||
gem 'mini_magick', '>=3.6.0'
|
gem 'mini_magick', '>=3.6.0'
|
||||||
gem 'fileutils', '>=0.7'
|
gem 'fileutils', '>=0.7'
|
||||||
|
|
||||||
#for faster LSI generation
|
# for faster LSI generation
|
||||||
|
# from http://tonyarnold.com/2014/03/27/speeding-up-jekylls-latent-semantic-mapping.html
|
||||||
gem 'narray', :git => "https://github.com/tonyarnold/narray"
|
gem 'narray', :git => "https://github.com/tonyarnold/narray"
|
||||||
gem 'gsl', :git => "https://github.com/tonyarnold/rb-gsl"
|
gem 'gsl', :git => "https://github.com/tonyarnold/rb-gsl"
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
{% for post in site.posts limit:6 %}
|
{% for post in site.related_posts limit:6 %}
|
||||||
|
|
||||||
<article class="related-post col2">
|
<article class="related-post col2">
|
||||||
<a href="{{ post.url }}">
|
<a href="{{ post.url }}">
|
@ -26,6 +26,8 @@ layout: base
|
|||||||
|
|
||||||
{% include comments.html %}
|
{% include comments.html %}
|
||||||
|
|
||||||
|
{% include relatedposts.html %}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</section>
|
</section>
|
@ -21,6 +21,8 @@ layout: base
|
|||||||
|
|
||||||
{% include comments.html %}
|
{% include comments.html %}
|
||||||
|
|
||||||
|
{% include relatedposts.html %}
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
</section>
|
</section>
|
Loading…
x
Reference in New Issue
Block a user