summaryrefslogtreecommitdiffstats
path: root/source/_includes/article.html
diff options
context:
space:
mode:
authorSkyArrow <tommy351@gmail.com>2012-01-24 14:53:22 +0100
committerSkyArrow <tommy351@gmail.com>2012-01-24 14:53:22 +0100
commit1c574d24b7fdd482499fa9553c19342b6a4d391e (patch)
tree3381ce235c72044d6fa76243e9d6948c737a6e4f /source/_includes/article.html
downloadoctopress-theme-jeyzu-1c574d24b7fdd482499fa9553c19342b6a4d391e.zip
octopress-theme-jeyzu-1c574d24b7fdd482499fa9553c19342b6a4d391e.tar.gz
created
Diffstat (limited to 'source/_includes/article.html')
-rw-r--r--source/_includes/article.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/source/_includes/article.html b/source/_includes/article.html
new file mode 100644
index 0000000..941dd86
--- /dev/null
+++ b/source/_includes/article.html
@@ -0,0 +1,34 @@
+{% unless page.no_header %}
+ <header>
+ {% if index %}
+ <div class="date left"><strong>{{ post.date | date: "%e" }}</strong>{{ post.date | date: "%b" }}</div>
+ <h1 class="title left"><a href="{{ root_url }}{{ post.url }}">{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}</a></h2>
+ {% else %}
+ <div class="date left"><strong>{{ post.date | date: "%e" }}</strong>{{ post.date | date: "%b" }}</div>
+ <h1 class="title left">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
+ {% endif %}
+ <div class="clear"></div>
+ </header>
+{% endunless %}
+{% if index %}
+ <div class="entry">
+ {{ content | excerpt }}
+ {% capture excerpted %}{{ content | has_excerpt }}{% endcapture %}
+ <footer>
+ {% if excerpted == 'true' %}
+ <a href="{{ root_url }}{{ post.url }}" class="more-link">閱讀全文</a>
+ {% endif %}
+ <a href="{% if index %}{{ root_url }}{{ post.url }}{% endif %}#disqus_thread" class="comment right">留言</a>
+ </footer>
+ </div>
+{% else %}
+ <div class="entry">
+ {{ content }}
+ <footer>
+ <div class="social left">{% include post/sharing.html %}</div>
+ <a href="#disqus_thread" class="comment right">留言</a>
+ <div class="clear"></div>
+ {% include post/categories.html %}
+ </footer>
+ </div>
+{% endif %} \ No newline at end of file