diff options
Diffstat (limited to '.themes/classic/source/_includes/post')
5 files changed, 47 insertions, 0 deletions
diff --git a/.themes/classic/source/_includes/post/author.html b/.themes/classic/source/_includes/post/author.html new file mode 100644 index 00000000..b2db9043 --- /dev/null +++ b/.themes/classic/source/_includes/post/author.html @@ -0,0 +1,6 @@ +{% if post.author %} + {% assign author = post.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/.themes/classic/source/_includes/post/categories.html b/.themes/classic/source/_includes/post/categories.html new file mode 100644 index 00000000..4a98b29d --- /dev/null +++ b/.themes/classic/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/.themes/classic/source/_includes/post/date.html b/.themes/classic/source/_includes/post/date.html new file mode 100644 index 00000000..f1ed4815 --- /dev/null +++ b/.themes/classic/source/_includes/post/date.html @@ -0,0 +1,10 @@ +{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %} +{% capture has_date %}{{ date | size }}{% endcapture %} +{% capture updated %}{{ page.updated }}{{ post.updated }}{% endcapture %} +{% capture was_updated %}{{ updated | size }}{% endcapture %} +{% if has_date != '0' %} +<time datetime="{{ date | datetime }}" pubdate {% if updated %} updated {% endif %}>{{ date | ordinalize }}</time> +{% endif %} +{% if was_updated != '0' %} +<time class="updated" datetime="{{ updated | datetime }}"></time> +{% endif %} diff --git a/.themes/classic/source/_includes/post/disqus_thread.html b/.themes/classic/source/_includes/post/disqus_thread.html new file mode 100644 index 00000000..f966f03a --- /dev/null +++ b/.themes/classic/source/_includes/post/disqus_thread.html @@ -0,0 +1,13 @@ +<div id="disqus_thread"></div> +<script type="text/javascript"> + var disqus_shortname = '{{ site.disqus_short_name }}'; + var disqus_identifier = '{{ site.url }}{{ page.url }}'; + var disqus_url = '{{ site.url }}{{ page.url }}'; + //var disqus_developer = 1; + (function() { + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + })(); +</script> +<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> diff --git a/.themes/classic/source/_includes/post/sharing.html b/.themes/classic/source/_includes/post/sharing.html new file mode 100644 index 00000000..7b074af5 --- /dev/null +++ b/.themes/classic/source/_includes/post/sharing.html @@ -0,0 +1,8 @@ +<div class="sharing"> + {% if site.twitter_tweet_button %} + <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> + {% endif %} + {% if site.google_plus_one %} + <g:plusone size="{{ site.google_plus_one_size }}"></g:plusone> + {% endif %} +</div> |