Browse code

1. Updated config so blog categories get ouput to /blog/categories 2. Increased default pagination to 10 posts per page 3. Explained email address for RSS feed better

Brandon Mathis authored on 01/07/2011 at 21:13:21
Showing 3 changed files
1 1
deleted file mode 100644
... ...
@@ -1,17 +0,0 @@
1
-layout: post
2
-title: Blog Archive
3
-no_meta: true
4
-<div class="blog-archives">
5
-{% for post in site.posts reverse %}
6
-{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
7
-{% unless year == this_year %}
8
-  {% assign year = this_year %}
9
-  <h2>{{ year }}</h2>
10
-{% endunless %}
11
-<article>
12
-  {% include archive_post.html %}
13
-</article>
14
-{% endfor %}
15
-</div>
16 1
new file mode 100644
... ...
@@ -0,0 +1,17 @@
0
+---
1
+layout: post
2
+title: Blog Archive
3
+no_meta: true
4
+---
5
+<div class="blog-archives">
6
+{% for post in site.posts reverse %}
7
+{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
8
+{% unless year == this_year %}
9
+  {% assign year = this_year %}
10
+  <h2>{{ year }}</h2>
11
+{% endunless %}
12
+<article>
13
+  {% include archive_post.html %}
14
+</article>
15
+{% endfor %}
16
+</div>
... ...
@@ -9,20 +9,21 @@ title: My Octopress Blog
9 9
 permalink: /blog/:year/:month/:day/:title
10 10
 subtitle: A blogging framework for hackers.
11 11
 author: Your Name
12
+
13
+# RSS / Email (optional) subscription links (change if using something like Feedburner)
12 14
 subscribe_rss: /atom.xml
13 15
 subscribe_email:
14 16
 
15 17
 markdown: rdiscount
16 18
 pygments: true
17
-#posts_per_page: 10
18
-paginate: 5
19
+paginate: 10
19 20
 recent_posts: 5
20
-category_dir: category
21
+category_dir: blog/categories
21 22
 simple_search: http://google.com/search
22 23
 
23 24
 # Optional configurations
24 25
 
25
-# For RSS Feed
26
+# RSS feeds can list your email address if you like
26 27
 email:
27 28
 
28 29
 # Twitter