From 1c574d24b7fdd482499fa9553c19342b6a4d391e Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Tue, 24 Jan 2012 21:53:22 +0800 Subject: created --- source/_includes/after_footer.html | 2 ++ source/_includes/archive_post.html | 8 ++++++++ source/_includes/article.html | 34 +++++++++++++++++++++++++++++++ source/_includes/asides.html | 3 +++ source/_includes/asides/recent_posts.html | 8 ++++++++ source/_includes/banner.html | 10 +++++++++ source/_includes/custom/after_footer.html | 2 ++ source/_includes/custom/asides/about.html | 4 ++++ source/_includes/custom/category_feed.xml | 27 ++++++++++++++++++++++++ source/_includes/custom/footer.html | 1 + source/_includes/custom/head.html | 0 source/_includes/custom/header.html | 0 source/_includes/custom/navigation.html | 19 +++++++++++++++++ source/_includes/disqus.html | 21 +++++++++++++++++++ source/_includes/footer.html | 6 ++++++ source/_includes/google_analytics.html | 13 ++++++++++++ source/_includes/head.html | 19 +++++++++++++++++ source/_includes/header.html | 8 ++++++++ source/_includes/navigation.html | 1 + source/_includes/post/author.html | 8 ++++++++ source/_includes/post/categories.html | 10 +++++++++ source/_includes/post/date.html | 15 ++++++++++++++ source/_includes/post/disqus_thread.html | 1 + source/_includes/post/sharing.html | 7 +++++++ 24 files changed, 227 insertions(+) create mode 100644 source/_includes/after_footer.html create mode 100644 source/_includes/archive_post.html create mode 100644 source/_includes/article.html create mode 100644 source/_includes/asides.html create mode 100644 source/_includes/asides/recent_posts.html create mode 100644 source/_includes/banner.html create mode 100644 source/_includes/custom/after_footer.html create mode 100644 source/_includes/custom/asides/about.html create mode 100644 source/_includes/custom/category_feed.xml create mode 100644 source/_includes/custom/footer.html create mode 100644 source/_includes/custom/head.html create mode 100644 source/_includes/custom/header.html create mode 100644 source/_includes/custom/navigation.html create mode 100644 source/_includes/disqus.html create mode 100644 source/_includes/footer.html create mode 100644 source/_includes/google_analytics.html create mode 100644 source/_includes/head.html create mode 100644 source/_includes/header.html create mode 100644 source/_includes/navigation.html create mode 100644 source/_includes/post/author.html create mode 100644 source/_includes/post/categories.html create mode 100644 source/_includes/post/date.html create mode 100644 source/_includes/post/disqus_thread.html create mode 100644 source/_includes/post/sharing.html (limited to 'source/_includes') diff --git a/source/_includes/after_footer.html b/source/_includes/after_footer.html new file mode 100644 index 0000000..20b9e4d --- /dev/null +++ b/source/_includes/after_footer.html @@ -0,0 +1,2 @@ +{% include disqus.html %} +{% include custom/after_footer.html %} diff --git a/source/_includes/archive_post.html b/source/_includes/archive_post.html new file mode 100644 index 0000000..fef3328 --- /dev/null +++ b/source/_includes/archive_post.html @@ -0,0 +1,8 @@ +{% capture category %}{{ post.categories | size }}{% endcapture %} +

{{post.title}}

+ +{% if category != '0' %} + +{% endif %} 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 %} +
+ {% if index %} +
{{ post.date | date: "%e" }}{{ post.date | date: "%b" }}
+

{% if site.titlecase %}{{ post.title | titlecase }}{% else %}{{ post.title }}{% endif %}

+ {% else %} +
{{ post.date | date: "%e" }}{{ post.date | date: "%b" }}
+

{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}

+ {% endif %} +
+
+{% endunless %} +{% if index %} +
+ {{ content | excerpt }} + {% capture excerpted %}{{ content | has_excerpt }}{% endcapture %} + +
+{% else %} +
+ {{ content }} +
+ + 留言 +
+ {% include post/categories.html %} +
+
+{% endif %} \ No newline at end of file diff --git a/source/_includes/asides.html b/source/_includes/asides.html new file mode 100644 index 0000000..432c8fc --- /dev/null +++ b/source/_includes/asides.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/source/_includes/asides/recent_posts.html b/source/_includes/asides/recent_posts.html new file mode 100644 index 0000000..0a73593 --- /dev/null +++ b/source/_includes/asides/recent_posts.html @@ -0,0 +1,8 @@ +
+

Recent Posts

+ +
diff --git a/source/_includes/banner.html b/source/_includes/banner.html new file mode 100644 index 0000000..93286a8 --- /dev/null +++ b/source/_includes/banner.html @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/source/_includes/custom/after_footer.html b/source/_includes/custom/after_footer.html new file mode 100644 index 0000000..f3bec2f --- /dev/null +++ b/source/_includes/custom/after_footer.html @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/source/_includes/custom/asides/about.html b/source/_includes/custom/asides/about.html new file mode 100644 index 0000000..59d309e --- /dev/null +++ b/source/_includes/custom/asides/about.html @@ -0,0 +1,4 @@ +
+

About Me

+

A little something about me.

+
diff --git a/source/_includes/custom/category_feed.xml b/source/_includes/custom/category_feed.xml new file mode 100644 index 0000000..f47c553 --- /dev/null +++ b/source/_includes/custom/category_feed.xml @@ -0,0 +1,27 @@ +--- +layout: nil +--- + + + + <![CDATA[{{ page.title }} | {{ site.title }}]]> + + + {{ site.time | date_to_xmlschema }} + {{ site.url }}/ + + + {% if site.email %}{% endif %} + + Octopress + + {% for post in site.categories[page.category] limit: 5 %} + + <![CDATA[{{ post.title | cdata_escape }}]]> + + {{ post.date | date_to_xmlschema }} + {{ site.url }}{{ post.id }} + + + {% endfor %} + diff --git a/source/_includes/custom/footer.html b/source/_includes/custom/footer.html new file mode 100644 index 0000000..f742b2f --- /dev/null +++ b/source/_includes/custom/footer.html @@ -0,0 +1 @@ +版權所有 © {{ site.time | date: "%Y" }} {{ site.title }} \ No newline at end of file diff --git a/source/_includes/custom/head.html b/source/_includes/custom/head.html new file mode 100644 index 0000000..e69de29 diff --git a/source/_includes/custom/header.html b/source/_includes/custom/header.html new file mode 100644 index 0000000..e69de29 diff --git a/source/_includes/custom/navigation.html b/source/_includes/custom/navigation.html new file mode 100644 index 0000000..a572467 --- /dev/null +++ b/source/_includes/custom/navigation.html @@ -0,0 +1,19 @@ + diff --git a/source/_includes/disqus.html b/source/_includes/disqus.html new file mode 100644 index 0000000..eb30877 --- /dev/null +++ b/source/_includes/disqus.html @@ -0,0 +1,21 @@ +{% comment %} Load script if disquss comments are enabled and `page.comments` is either empty (index) or set to true {% endcomment %} +{% if site.disqus_short_name and page.comments != false %} + +{% endif %} diff --git a/source/_includes/footer.html b/source/_includes/footer.html new file mode 100644 index 0000000..2a5a0eb --- /dev/null +++ b/source/_includes/footer.html @@ -0,0 +1,6 @@ +
+ {% include custom/footer.html %} + +
diff --git a/source/_includes/google_analytics.html b/source/_includes/google_analytics.html new file mode 100644 index 0000000..4d4d596 --- /dev/null +++ b/source/_includes/google_analytics.html @@ -0,0 +1,13 @@ +{% if site.google_analytics_tracking_id %} + +{% endif %} diff --git a/source/_includes/head.html b/source/_includes/head.html new file mode 100644 index 0000000..3b7a605 --- /dev/null +++ b/source/_includes/head.html @@ -0,0 +1,19 @@ + + + + + {% if page.title %}{{ page.title }} - {% endif %}{{ site.title }} + + + {% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %} + + {% if page.keywords %}{% endif %} + + + + + + + {% include custom/head.html %} + {% include google_analytics.html %} + \ No newline at end of file diff --git a/source/_includes/header.html b/source/_includes/header.html new file mode 100644 index 0000000..6c7e800 --- /dev/null +++ b/source/_includes/header.html @@ -0,0 +1,8 @@ +

{{ site.title }}

+ + +{% include custom/header.html %} \ No newline at end of file diff --git a/source/_includes/navigation.html b/source/_includes/navigation.html new file mode 100644 index 0000000..888042e --- /dev/null +++ b/source/_includes/navigation.html @@ -0,0 +1 @@ +{% include custom/navigation.html %} \ No newline at end of file diff --git a/source/_includes/post/author.html b/source/_includes/post/author.html new file mode 100644 index 0000000..83dd6a8 --- /dev/null +++ b/source/_includes/post/author.html @@ -0,0 +1,8 @@ +{% if post.author %} + {% assign author = post.author %} +{% elsif page.author %} + {% assign author = page.author %} +{% else %} + {% assign author = site.author %} +{% endif %} +{% if author %}Posted by {{ author }}{% endif %} diff --git a/source/_includes/post/categories.html b/source/_includes/post/categories.html new file mode 100644 index 0000000..2ec7896 --- /dev/null +++ b/source/_includes/post/categories.html @@ -0,0 +1,10 @@ +{% capture category %}{% if post %}{{ post.categories | category_links | size }}{% else %}{{ page.categories | category_links | size }}{% endif %}{% endcapture %} +{% unless category == '0' %} +
+ {% if post %} + {{ post.categories | category_links }} + {% else %} + {{ page.categories | category_links }} + {% endif %} +
+{% endunless %} diff --git a/source/_includes/post/date.html b/source/_includes/post/date.html new file mode 100644 index 0000000..ecf1ad7 --- /dev/null +++ b/source/_includes/post/date.html @@ -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 %}{% endcapture %} +{% endif %} + +{% if was_updated != '0' %} + {% capture updated %}{% endcapture %} +{% else %}{% assign updated = false %}{% endif %} \ No newline at end of file diff --git a/source/_includes/post/disqus_thread.html b/source/_includes/post/disqus_thread.html new file mode 100644 index 0000000..b1acd8c --- /dev/null +++ b/source/_includes/post/disqus_thread.html @@ -0,0 +1 @@ + diff --git a/source/_includes/post/sharing.html b/source/_includes/post/sharing.html new file mode 100644 index 0000000..2ff8ca4 --- /dev/null +++ b/source/_includes/post/sharing.html @@ -0,0 +1,7 @@ +
+ + + + +
+ \ No newline at end of file -- cgit v1.2.3