summaryrefslogtreecommitdiffstats
path: root/source/_includes/article.html
blob: d9c51397bc14d07522d34ce17f1dbf25f526a8f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% if index %}
    <h1 class="title"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h1>
    <div class="entry">
        {{ content | excerpt }}
        {% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
        {% if excerpted == 'true' %}<a href="{{ root_url }}{{ post.url }}" class="more-link">閱讀全文</a>{% endif %}
    </div>
    <div class="meta">
        <div class="date">{% include post/date.html %}{{ time }}</div>
        <div class="tags">{% include post/categories.html %}</div>
        <div class="comments"><a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">留言</a></div>
    </div>
{% else %}
    <h1 class="title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
    <div class="entry">{{ content }}</div>
    <div class="meta">
        <div class="date">{% include post/date.html %}{{ time }}</div>
        <div class="tags">{% include post/categories.html %}</div>
        <div class="comments"><a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread">留言</a></div>
    </div>
{% endif %}