aboutsummaryrefslogtreecommitdiff
path: root/source/_includes/post
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/_includes/post/author.html8
-rw-r--r--source/_includes/post/categories.html10
-rw-r--r--source/_includes/post/date.html5
-rw-r--r--source/_includes/post/disqus_thread.html1
-rw-r--r--source/_includes/post/sharing.html11
5 files changed, 35 insertions, 0 deletions
diff --git a/source/_includes/post/author.html b/source/_includes/post/author.html
new file mode 100644
index 00000000..83dd6a89
--- /dev/null
+++ b/source/_includes/post/author.html
@@ -0,0 +1,8 @@
+{% if post.author %}
+ {% assign author = post.author %}
+{% elsif page.author %}
+ {% assign author = page.author %}
+{% else %}
+ {% assign author = site.author %}
+{% endif %}
+{% if author %}<span class="byline author vcard">Posted by <span class="fn">{{ author }}</span></span>{% endif %}
diff --git a/source/_includes/post/categories.html b/source/_includes/post/categories.html
new file mode 100644
index 00000000..4a98b29d
--- /dev/null
+++ b/source/_includes/post/categories.html
@@ -0,0 +1,10 @@
+{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
+{% unless category == '0' %}
+<span class="categories">
+ {% if post %}
+ {{ post.categories | category_links }}
+ {% else %}
+ {{ page.categories | category_links }}
+ {% endif %}
+</span>
+{% endunless %}
diff --git a/source/_includes/post/date.html b/source/_includes/post/date.html
new file mode 100644
index 00000000..a86953c2
--- /dev/null
+++ b/source/_includes/post/date.html
@@ -0,0 +1,5 @@
+{% if page.date %}{% capture time %}{{ page.date_time_html }}{% endcapture %}{% endif %}
+{% if post.date %}{% capture time %}{{ post.date_time_html }}{% endcapture %}{% endif %}
+
+{% if page.updated %}{% capture updated %}{{ page.date_time_updated_html }}{% endcapture %}{% endif %}
+{% if post.updated %}{% capture updated %}{{ post.date_time_updated_html }}{% endcapture %}{% endif %}
diff --git a/source/_includes/post/disqus_thread.html b/source/_includes/post/disqus_thread.html
new file mode 100644
index 00000000..b1acd8cc
--- /dev/null
+++ b/source/_includes/post/disqus_thread.html
@@ -0,0 +1 @@
+<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
diff --git a/source/_includes/post/sharing.html b/source/_includes/post/sharing.html
new file mode 100644
index 00000000..d639faa1
--- /dev/null
+++ b/source/_includes/post/sharing.html
@@ -0,0 +1,11 @@
+<div class="sharing">
+ {% if site.twitter_tweet_button %}
+ <a href="//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>
+ {% endif %}
+ {% if site.google_plus_one %}
+ <div class="g-plusone" data-size="{{ site.google_plus_one_size }}"></div>
+ {% endif %}
+ {% if site.facebook_like %}
+ <div class="fb-like" data-send="true" data-width="450" data-show-faces="false"></div>
+ {% endif %}
+</div>