From 1ad1b7fe283cb8de90a24f6721af30cdd31cd25c Mon Sep 17 00:00:00 2001
From: Matthias Kretschmann
Date: Sat, 5 Jul 2014 12:59:35 +0200
Subject: [PATCH] display related posts under each post & link
---
Gemfile | 3 ++-
.../{related_posts.html => relatedposts.html} | 12 ++++++------
_src/_layouts/link.html | 10 ++++++----
_src/_layouts/post.html | 12 +++++++-----
4 files changed, 21 insertions(+), 16 deletions(-)
rename _src/_includes/{related_posts.html => relatedposts.html} (84%)
diff --git a/Gemfile b/Gemfile
index fb1fd0e8..d7836c1b 100644
--- a/Gemfile
+++ b/Gemfile
@@ -6,6 +6,7 @@ gem 'jekyll', '1.5.1'
gem 'mini_magick', '>=3.6.0'
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 'gsl', :git => "https://github.com/tonyarnold/rb-gsl"
\ No newline at end of file
diff --git a/_src/_includes/related_posts.html b/_src/_includes/relatedposts.html
similarity index 84%
rename from _src/_includes/related_posts.html
rename to _src/_includes/relatedposts.html
index 2a550929..c8ee660d 100644
--- a/_src/_includes/related_posts.html
+++ b/_src/_includes/relatedposts.html
@@ -1,21 +1,21 @@
{% if site.related_posts.size > 1 %}
{% endif %}
\ No newline at end of file
diff --git a/_src/_layouts/link.html b/_src/_layouts/link.html
index 54a9ceca..f778c62c 100644
--- a/_src/_layouts/link.html
+++ b/_src/_layouts/link.html
@@ -3,7 +3,7 @@ layout: base
---
-
+
@@ -21,11 +21,13 @@ layout: base
∞
-
+
{% include entry_meta.html %}
-
+
{% include comments.html %}
-
+
+ {% include relatedposts.html %}
+
\ No newline at end of file
diff --git a/_src/_layouts/post.html b/_src/_layouts/post.html
index 4e1c94b2..038f21b9 100644
--- a/_src/_layouts/post.html
+++ b/_src/_layouts/post.html
@@ -3,7 +3,7 @@ layout: base
---
-
+
{{ page.title | titlecase }}
@@ -13,14 +13,16 @@ layout: base
{% if page.image %}
{% picture {{ page.image }} class="teaser" %}
{% endif %}
-
+
{{ content }}
-
+
{% include entry_meta.html %}
-
+
{% include comments.html %}
-
+
+ {% include relatedposts.html %}
+
\ No newline at end of file