Permalink
Browse files

Separated each extension into its own directory and added sample data…

… so others can see how to use the extensions.
  • Loading branch information...
1 parent 98b1e8f commit 74b79e33a9f290ffc25c13ac42885713f04f5a0b @rfelix committed Jan 19, 2010
File renamed without changes.
@@ -0,0 +1,10 @@
+---
+layout: page
+---
+
+<h1>{{ page.month | to_month }} {{ page.day }}, {{ page.year }}</h1>
+<ul>
+ {% for p in site.collated_posts[page.year][page.month][page.day] reversed %}
+ <li><a href='{{ p.url }}'>{{ p.title }}</a></li>
+ {% endfor %}
+</ul>
@@ -0,0 +1,14 @@
+---
+layout: page
+---
+
+<h1>{{ page.month | to_month }} {{ page.year }}</h1>
+<ul>
+ {% for d in (1..31) reversed %}
+ {% if site.collated_posts[page.year][page.month][d] %}
+ {% for p in site.collated_posts[page.year][page.month][d] reversed %}
+ <li><a href='{{ p.url }}'>{{ p.title }}</a></li>
+ {% endfor %}
+ {% endif %}
+ {% endfor %}
+</ul>
@@ -0,0 +1,20 @@
+---
+layout: page
+---
+
+<h1>{{ page.year }}</h1>
+
+{% for m in (1..12) reversed %}
+ {% if site.collated_posts[page.year][m] %}
+ <h3>{{ m | to_month }}</h3>
+ <ul>
+ {% for d in (1..31) reversed %}
+ {% if site.collated_posts[page.year][m][d] %}
+ {% for p in site.collated_posts[page.year][m][d] reversed %}
+ <li><a href='{{ p.url }}'>{{ p.title }}</a></li>
+ {% endfor %}
+ {% endif %}
+ {% endfor %}
+ </ul>
+ {% endif %}
+{% endfor %}
File renamed without changes.
@@ -0,0 +1,4 @@
+# Change the dir the individual category files are output to
+category_dir: topics # Default is categories
+# Title to be used when generating the individual category html files prefixed to category name
+category_title_prefix: "Topics &raquo; "
@@ -0,0 +1,12 @@
+---
+layout: page
+---
+
+<h1> Topic: {{ page.category }} </h1>
+<ul>
+{% for post in site.categories[page.category] %}
+ <li>
+ <a href="{{post.url}}">{{ post.title }}</a>
+ </li>
+{% endfor %}
+</ul>
View
@@ -1,4 +1,4 @@
-Dir[File.join(File.dirname(__FILE__), "*.rb")].each do |f|
+Dir[File.join(File.dirname(__FILE__),"*", "*.rb")].each do |f|
unless f =~ /jekyll\_ext\.rb$/
puts "Loading Extension: #{File.basename(f)}"
load f
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,2 @@
+# Delimeter to be used to seperate whole post from its preview
+content_delimeter: "<!-- -**-END-**- -->" # Default is <!-- -**-END-**- -->
@@ -0,0 +1,18 @@
+---
+layout: page
+title: Topics
+---
+
+h1. Topics
+
+{% for topic in site.iterable.categories %}
+
+h2. <span id="{{ topic.name | replace:' ','_' | downcase }}">{{ topic.name }}</span>
+
+<ul>
+{% for post in topic.posts %}
+<li><a href="{{ site.baseurl }}{{post.url}}">{{ post.title }}</a></li>
+{% endfor %}
+</ul>
+
+{% endfor %}
@@ -0,0 +1,12 @@
+---
+layout: page
+title: Tags
+---
+
+<h1> Tags </h1>
+<ul>
+{% for tag in site.iterable.tags %}
+ <a style="font-size: {{ tag.posts | size | times:1.5 | plus: 10 }}px" href="{{site.baseurl}}/tags/{{tag.name}}">
+ {{ tag.name }}</a>{% if forloop.last == false %},&nbsp;{% endif %}
+{% endfor %}
+</ul>
@@ -0,0 +1,4 @@
+# Change the dir the individual tag files are output to
+tag_dir: tags # Default is tags
+# Title to be used when generating the individual tag html files prefixed with tag name
+tag_title_prefix: "Tags &raquo; "
@@ -0,0 +1,13 @@
+---
+layout: page
+---
+
+<h1> Tag: {{ page.tag }} </h1>
+<ul>
+{% for post in site.tags[page.tag] %}
+ <li>
+ <a href="{{post.url}}">{{ post.title }}</a>
+ </li>
+{% endfor %}
+</ul>
+
File renamed without changes.

0 comments on commit 74b79e3

Please sign in to comment.