Update to site
This commit is contained in:
parent
3345fa5897
commit
b0bdfe2fe9
244 changed files with 11618 additions and 12 deletions
32
source/_includes/blog/post/article.html
Normal file
32
source/_includes/blog/post/article.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<header>
|
||||
{% if index %}
|
||||
<h1 class="beta">
|
||||
<a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a>
|
||||
</h1>
|
||||
{% else %}
|
||||
<h1 class="title indent">{{ page.title }}</h1>
|
||||
{% endif %}
|
||||
|
||||
{% unless post.meta == false %}
|
||||
<div class="meta clearfix">
|
||||
{% include blog/post/date.html %}{{ time }}
|
||||
{% include blog/post/tags.html %}
|
||||
{% if site.disqus_short_name and page.comments != false and post.comments != false and site.disqus_show_comment_count == true %}
|
||||
<a class="pull-right" href="{% if index %}{{ site.url }}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">
|
||||
Comments <i class="icon-comment"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endunless %}
|
||||
</header>
|
||||
|
||||
{% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
|
||||
|
||||
{% if excerpted == 'true' and index %}
|
||||
<div class="entry-content clearfix">
|
||||
{{ content | excerpt }}
|
||||
<a class="btn pull-right" href="{{ root_url }}{{ post.url }}">{{ site.excerpt_link }}</a>
|
||||
</div>
|
||||
{% else %}
|
||||
{{ content }}
|
||||
{% endif %}
|
15
source/_includes/blog/post/date.html
Normal file
15
source/_includes/blog/post/date.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% capture date %}{{ page.date }}{{ post.date }}{% endcapture %}
|
||||
{% capture date_formatted %}{{ page.date_formatted }}{{ post.date_formatted }}{% endcapture %}
|
||||
{% capture has_date %}{{ date | size }}{% endcapture %}
|
||||
|
||||
{% capture updated %}{{ page.updated }}{{ post.updated }}{% endcapture %}
|
||||
{% capture updated_formatted %}{{ page.updated_formatted }}{{ post.updated_formatted }}{% endcapture %}
|
||||
{% capture was_updated %}{{ updated | size }}{% endcapture %}
|
||||
|
||||
{% if has_date != '0' %}
|
||||
{% capture time %}<time class="pull-left" datetime="{{ date | datetime | date_to_xmlschema }}" pubdate{% if updated %} data-updated="true"{% endif %}><i class="icon-calendar"></i> {{ date_formatted }}</time>{% endcapture %}
|
||||
{% endif %}
|
||||
|
||||
{% if was_updated != '0' %}
|
||||
{% capture updated %}<time class="pull-left" datetime="{{ updated | datetime | date_to_xmlschema }}" class="updated">Updated {{ updated_formatted }}</time>{% endcapture %}
|
||||
{% else %}{% assign updated = false %}{% endif %}
|
1
source/_includes/blog/post/disqus_thread.html
Normal file
1
source/_includes/blog/post/disqus_thread.html
Normal file
|
@ -0,0 +1 @@
|
|||
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
17
source/_includes/blog/post/tags.html
Normal file
17
source/_includes/blog/post/tags.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %}
|
||||
{% unless category == '0' %}
|
||||
<div class="pull-left">
|
||||
<i class="icon-tags"></i>
|
||||
<ul class="tags unstyled">
|
||||
{% if post %}
|
||||
{% for item in post.categories %}
|
||||
<li>{{ item | category_link }}</li>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% for item in page.categories %}
|
||||
<li>{{ item | category_link }}</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endunless %}
|
Loading…
Add table
Add a link
Reference in a new issue