e6cc1835f7
Add support for just-comments
83 lines
3.0 KiB
HTML
83 lines
3.0 KiB
HTML
---
|
|
layout: base
|
|
---
|
|
|
|
{% include header.html type="post" %}
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
|
|
|
{% if page.gh-repo %}
|
|
{% assign gh_split = page.gh-repo | split:'/' %}
|
|
{% assign gh_user = gh_split[0] %}
|
|
{% assign gh_repo = gh_split[1] %}
|
|
|
|
<div id="header-gh-btns">
|
|
{% if page.gh-badge.size > 0 %}
|
|
{% for badge in page.gh-badge %}
|
|
{% case badge %}
|
|
{% when 'star'%}
|
|
<iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&repo={{ gh_repo }}&type=star&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
|
|
{% when 'watch'%}
|
|
<iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&repo={{ gh_repo }}&type=watch&v=2&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
|
|
{% when 'fork'%}
|
|
<iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&repo={{ gh_repo }}&type=fork&count=true" frameborder="0" scrolling="0" width="120px" height="20px"></iframe>
|
|
{% when 'follow'%}
|
|
<iframe src="https://ghbtns.com/github-btn.html?user={{ gh_user }}&type=follow&count=true" frameborder="0" scrolling="0" width="220px" height="20px"></iframe>
|
|
{% endcase %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<article role="main" class="blog-post">
|
|
{{ content }}
|
|
</article>
|
|
|
|
{% if page.tags.size > 0 %}
|
|
<div class="blog-tags">
|
|
Tags:
|
|
{% if site.link-tags %}
|
|
{% for tag in page.tags %}
|
|
<a href="{{ site.baseurl }}/tags#{{- tag -}}">{{- tag -}}</a>
|
|
{% endfor %}
|
|
{% else %}
|
|
{{ page.tags | join: ", " }}
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if page.social-share %}
|
|
{% include social-share.html %}
|
|
{% endif %}
|
|
|
|
<ul class="pager blog-pager">
|
|
{% if page.previous.url %}
|
|
<li class="previous">
|
|
<a href="{{ page.previous.url | prepend: site.baseurl | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.previous.title}}">← Previous Post</a>
|
|
</li>
|
|
{% endif %}
|
|
{% if page.next.url %}
|
|
<li class="next">
|
|
<a href="{{ page.next.url | prepend: site.baseurl | replace: '//', '/' }}" data-toggle="tooltip" data-placement="top" title="{{page.next.title}}">Next Post →</a>
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
|
|
{% if page.comments %}
|
|
<div class="disqus-comments">
|
|
{% include disqus.html %}
|
|
</div>
|
|
{% include fb-comment.html %}
|
|
<div class="staticman-comments">
|
|
{% include staticman-comments.html %}
|
|
</div>
|
|
<div class="justcomments-comments">
|
|
{% include just_comments.html %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|