Browse code

Moved some post partials into source/_includes/post/ and updated include links

Brandon Mathis authored on 14/07/2011 at 02:47:59
Showing 13 changed files
... ...
@@ -6,11 +6,9 @@
6 6
       <h1 class="entry-title">{{ page.title | titlecase }}</h1>
7 7
     {% endif %}
8 8
     {% unless page.no_meta %}
9
-      <p class="meta">{% include post_date.html %}</p>
9
+      <p class="meta">{% include post/date.html %}</p>
10 10
     {% endunless %}
11 11
   </header>
12
-  {% if index %}
13
-  {% endif %}
14 12
 {% endunless %}
15 13
 {% if index %}
16 14
   <div class="entry-content">{{ content | exerpt | smart_quotes }}</div>
17 15
deleted file mode 100644
... ...
@@ -1,13 +0,0 @@
1
-<div id="disqus_thread"></div>
2
-<script type="text/javascript">
3
-  var disqus_shortname = '{{ site.disqus_short_name }}';
4
-  var disqus_identifier = '{{ site.url }}{{ page.url }}';
5
-  var disqus_url = '{{ site.url }}{{ page.url }}';
6
-  //var disqus_developer = 1;
7
-  (function() {
8
-    var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
9
-    dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
10
-    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
11
-  })();
12
-</script>
13
-<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
14 1
new file mode 100644
... ...
@@ -0,0 +1,6 @@
0
+{% if post.author %}
1
+  {% assign author = post.author %}
2
+{% else %}
3
+  {% assign author = site.author %}
4
+{% endif %}
5
+{% if author %}<span class="byline author vcard">Posted by <span class="fn">{{ author }}</span></span>{% endif %}
0 6
new file mode 100644
... ...
@@ -0,0 +1,10 @@
0
+{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
1
+{% unless category == '0' %}
2
+<span class="categories">
3
+  {% if post %}
4
+    {{ post.categories | category_links }}
5
+  {% else %}
6
+    {{ page.categories | category_links }}
7
+  {% endif %}
8
+</span>
9
+{% endunless %}
0 10
new file mode 100644
... ...
@@ -0,0 +1,10 @@
0
+{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %}
1
+{% capture has_date %}{{ date | size }}{% endcapture %}
2
+{% capture updated %}{{ page.updated }}{{ post.updated }}{% endcapture %}
3
+{% capture was_updated %}{{ updated | size }}{% endcapture %}
4
+{% if has_date != '0' %}
5
+<time datetime="{{ date | datetime }}" pubdate {% if updated %} updated {% endif %}>{{ date | ordinalize }}</time>
6
+{% endif %}
7
+{% if was_updated != '0' %}
8
+<time class="updated" datetime="{{ updated | datetime }}"></time>
9
+{% endif %}
0 10
new file mode 100644
... ...
@@ -0,0 +1,13 @@
0
+<div id="disqus_thread"></div>
1
+<script type="text/javascript">
2
+  var disqus_shortname = '{{ site.disqus_short_name }}';
3
+  var disqus_identifier = '{{ site.url }}{{ page.url }}';
4
+  var disqus_url = '{{ site.url }}{{ page.url }}';
5
+  //var disqus_developer = 1;
6
+  (function() {
7
+    var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
8
+    dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
9
+    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
10
+  })();
11
+</script>
12
+<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
0 13
new file mode 100644
... ...
@@ -0,0 +1,8 @@
0
+<div class="sharing">
1
+  {% if site.twitter_tweet_button %}
2
+  <a href="http://twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}" data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}" >Tweet</a>
3
+  {% endif %}
4
+  {% if site.google_plus_one %}
5
+  <g:plusone size="{{ site.google_plus_one_size }}"></g:plusone>
6
+  {% endif %}
7
+</div>
0 8
deleted file mode 100644
... ...
@@ -1,6 +0,0 @@
1
-{% if post.author %}
2
-  {% assign author = post.author %}
3
-{% else %}
4
-  {% assign author = site.author %}
5
-{% endif %}
6
-{% if author %}<span class="byline author vcard">Posted by <span class="fn">{{ author }}</span></span>{% endif %}
7 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
2
-{% unless category == '0' %}
3
-<span class="categories">
4
-  {% if post %}
5
-    {{ post.categories | category_links }}
6
-  {% else %}
7
-    {{ page.categories | category_links }}
8
-  {% endif %}
9
-</span>
10
-{% endunless %}
11 1
deleted file mode 100644
... ...
@@ -1,10 +0,0 @@
1
-{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %}
2
-{% capture has_date %}{{ date | size }}{% endcapture %}
3
-{% capture updated %}{{ page.updated }}{{ post.updated }}{% endcapture %}
4
-{% capture was_updated %}{{ updated | size }}{% endcapture %}
5
-{% if has_date != '0' %}
6
-<time datetime="{{ date | datetime }}" pubdate {% if updated %} updated {% endif %}>{{ date | ordinalize }}</time>
7
-{% endif %}
8
-{% if was_updated != '0' %}
9
-<time class="updated" datetime="{{ updated | datetime }}"></time>
10
-{% endif %}
11 1
deleted file mode 100644
... ...
@@ -1,8 +0,0 @@
1
-<div class="sharing">
2
-  {% if site.twitter_tweet_button %}
3
-  <a href="http://twitter.com/share" class="twitter-share-button" data-url="{{ site.url }}{{ page.url }}" data-via="{{ site.twitter_user }}" data-counturl="{{ site.url }}{{ page.url }}" >Tweet</a>
4
-  {% endif %}
5
-  {% if site.google_plus_one %}
6
-  <g:plusone size="{{ site.google_plus_one_size }}"></g:plusone>
7
-  {% endif %}
8
-</div>
... ...
@@ -6,18 +6,18 @@ layout: default
6 6
 <article>
7 7
   <header>
8 8
     <h1 class="entry-title">{{ page.title | titlecase }}</h1>
9
-    {% unless page.no_meta or !index %}<p class="meta">{% include post_date.html %}</p>{% endunless %}
9
+    {% unless page.no_meta or !index %}<p class="meta">{% include post/date.html %}</p>{% endunless %}
10 10
   </header>
11 11
   {{ content | smart_quotes }}
12 12
   {% unless page.no_footer %}
13 13
     <footer>
14 14
       {% if page.date %}
15 15
       <p class="meta">
16
-        {% include post_date.html %}
16
+        {% include post/date.html %}
17 17
       </p>
18 18
       {% endif %}
19 19
       {% unless page.no_sharing %}
20
-        {% include sharing.html %}
20
+        {% include post/sharing.html %}
21 21
       {% endunless %}
22 22
     </footer>
23 23
   {% endunless %}
... ...
@@ -25,7 +25,7 @@ layout: default
25 25
 {% if site.disqus_short_name and page.comments == true %}
26 26
   <section>
27 27
     <h1>Comments</h1>
28
-    <div id="disqus_thread">{% include disqus_thread.html %}</div>
28
+    <div id="disqus_thread">{% include post/disqus_thread.html %}</div>
29 29
   </section>
30 30
 {% endif %}
31 31
 </div>
... ...
@@ -8,19 +8,19 @@ single: true
8 8
   {% include article.html %}
9 9
   <footer>
10 10
     <p class="meta">
11
-      {% include post_author.html %}
12
-      {% include post_date.html %}
13
-      {% include post_categories.html %}
11
+      {% include post/author.html %}
12
+      {% include post/date.html %}
13
+      {% include post/categories.html %}
14 14
     </p>
15 15
     {% unless page.no_sharing %}
16
-    {% include sharing.html %}
16
+    {% include post/sharing.html %}
17 17
     {% endunless %}
18 18
   </footer>
19 19
 </article>
20 20
 {% if site.disqus_short_name and page.no_comments != true %}
21 21
   <section>
22 22
     <h1>Comments</h1>
23
-    <div id="disqus_thread">{% include disqus_thread.html %}</div>
23
+    <div id="disqus_thread">{% include post/disqus_thread.html %}</div>
24 24
   </section>
25 25
 {% endif %}
26 26
 </div>