diff --git a/_config.yml b/_config.yml index cd88b18..d66ca47 100644 --- a/_config.yml +++ b/_config.yml @@ -11,10 +11,17 @@ disqus: boukefalos analytics: UA-46375339-1 maps: AIzaSyCyIwGR-F48dFjAbwNr9JdOsfUYaUQxz1s +# pagination +paginate: 3 +all_posts: 'Alle posts →' +all_posts_description: 'Bekijk alle # posts.' +read_more: '» Verder lezen...' +previous_page: '← Vorige pagina' +next_page: 'Volgende pagina →' + # other gems: [jekyll-paginate] markdown: redcarpet -paginate: 7 highlighter: pygments safe: false environment: dev diff --git a/_includes/post.html b/_includes/post.html new file mode 100644 index 0000000..ab7a496 --- /dev/null +++ b/_includes/post.html @@ -0,0 +1,22 @@ +
+
+
+ {% if post.date %} + + {% endif %} + {% if post.location %} + map + {% endif %} + {% if post.code %} + code + {% endif %} +
+

+ {{ post.title }} + +

+
+
+ {{ post.content }} +
+
diff --git a/_includes/post_detail.html b/_includes/post_detail.html new file mode 100644 index 0000000..4c070a8 --- /dev/null +++ b/_includes/post_detail.html @@ -0,0 +1,33 @@ +
+
+
+ {% if post.date %} + + {% endif %} + {% if post.location %} + map + {% endif %} + {% if post.code %} + code + {% endif %} +
+

+ {{ post.title }} + +

+
+
+ {{ post.excerpt }} + {% capture content_words %} + {{ post.content | number_of_words }} + {% endcapture %} + {% capture excerpt_words %} + {{ post.excerpt | number_of_words }} + {% endcapture %} + {% if excerpt_words != content_words %} +

+ {{ site.read_more }} +

+ {% endif %} +
+
diff --git a/_layouts/post.html b/_layouts/post.html index 603cd6a..7b61151 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -20,12 +20,6 @@
{{ content }}
-
-
- -
-
-
{% if false != page.comments %} {% include disqus.html %} {% endif %} diff --git a/_scripts/generate-gallery.php b/_scripts/generate-gallery.php index 2321428..dea8542 100644 --- a/_scripts/generate-gallery.php +++ b/_scripts/generate-gallery.php @@ -316,7 +316,7 @@ $oConsole {%% include gallery_list.html gallery='%s' %%} EOF - , (empty($aGallery['description']) ? '' : $aGallery['description']), implode(' · ', $aLinks), $sGallery); + , (empty($aGallery['description']) ? '' : $aGallery['description']), implode(' | ', $aLinks), $sGallery); file_put_contents( $sRenderPath . '/index.html', '---' . "\n" . yamlDump($aMatter) . '---' . "\n" . $sContents diff --git a/index.html b/index.html index a4dfb0f..5e2099a 100644 --- a/index.html +++ b/index.html @@ -13,24 +13,28 @@ tags: blog scotland chemistry phd {% for post in paginator.posts %} -
-
-
- -
-

{{ post.title }}

- {% if post.description %} -
{{ post.description }}
- {% endif %} -
-
+ {% include post_detail.html %} {% endfor %} +{% if paginator.total_pages > 1 %} + +{% endif %} + {% if paginator.next_page %}
-

more posts →

-
See the full list of {{ site.posts.size }} posts.
+

{{ site.all_posts }}

+
{{ site.all_posts_description | replace:'#',site.posts.size }}
{% endif %}