gergelypolonkai-web-jekyll/_includes/blog-post.html

52 lines
1.4 KiB
HTML
Raw Normal View History

2015-04-22 16:11:35 +00:00
<article class="{% if page.post_listing %}col-sm-5 col-md-6 {% endif%}post">
{% if page.post_listing %}
<ul class="list-inline">
<li class="col-md-8">
{% endif %}
<header class="post-header">
<h3>
{% if page.post_listing %}
<a href="{{post.url | prepend: site.baseurl}}">
{% endif %}
{{post.title}}
{% if page.post_listing %}
</a>
{% endif %}
{% if page.render_post %}
<div class="plusone-container"><div class="g-plusone" data-annotation="inline" data-size="small" data-width="300"></div></div>
{% endif %}
</h3>
2015-04-22 23:28:28 +00:00
<div class="meta pull-left">
{{post.author.name}}
2015-04-22 16:11:35 +00:00
</div>
2015-04-22 23:28:28 +00:00
<div class="meta pull-right">
2015-04-22 16:11:35 +00:00
{{post.date | date: "%b %-d, %Y :: %H:%M"}}
</div>
<div class="clearfix"></div>
</header>
<main>
{% if page.render_post %}
{{content}}
{% else %}
{{post.excerpt}}
{% endif %}
</main>
{% capture tagsize %}{{post.tags | size}}{% endcapture %}
{% if tagsize != '0' %}
2015-04-22 16:11:35 +00:00
<footer>
<p class="article-tags">
Tags:
{% for tag in post.tags %}
{% include tag-link.html %}
{% endfor %}
2015-04-22 16:11:35 +00:00
</p>
</footer>
{% endif %}
2015-04-22 16:11:35 +00:00
{% if page.post_listing %}
</li>
</ul>
{% endif %}
</article>