diff options
author | SkyArrow <tommy351@gmail.com> | 2012-01-24 14:53:22 +0100 |
---|---|---|
committer | SkyArrow <tommy351@gmail.com> | 2012-01-24 14:53:22 +0100 |
commit | 1c574d24b7fdd482499fa9553c19342b6a4d391e (patch) | |
tree | 3381ce235c72044d6fa76243e9d6948c737a6e4f /source/_includes | |
download | octopress-theme-jeyzu-1c574d24b7fdd482499fa9553c19342b6a4d391e.zip octopress-theme-jeyzu-1c574d24b7fdd482499fa9553c19342b6a4d391e.tar.gz |
created
Diffstat (limited to 'source/_includes')
24 files changed, 227 insertions, 0 deletions
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 %} +<h1><a href="{{ root_url }}{{ post.url }}">{{post.title}}</a></h1> +<time datetime="{{ post.date | datetime | date_to_xmlschema }}" pubdate>{{ post.date | date: "<span class='month'>%b</span> <span class='day'>%d</span> <span class='year'>%Y</span>"}}</time> +{% if category != '0' %} +<footer> + <span class="categories">posted in {{ post.categories | category_links }}</span> +</footer> +{% 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 %} + <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 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 @@ +<aside id="sidebar" class="right"> + {% include asides/recent_posts.html %} +</aside>
\ 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 @@ +<div class="widget"> + <h3>Recent Posts</h3> + <ul> + {% for post in site.posts limit: site.recent_posts %} + <li><a href="{{ root_url }}{{ post.url }}">{{ post.title }}</a></li> + {% endfor %} + </ul> +</div> 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 @@ +<div id="banner" class="inner"> + <div class="image"> + <div class="wrap"></div> + </div> + <div class="prev"></div> + <div class="next"></div> + <ul class="dots"></ul> + <div class="loading"><div>載入中</div></div> + <div class="error"><div>請開啟 Javascript 以獲得最佳的瀏覽效果</div></div> +</div>
\ 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 @@ +<script src="{{ root_url }}/javascripts/jquery.easing.1.3.js"></script> +<script src="{{ root_url }}/javascripts/banner.js"></script>
\ 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 @@ +<section> + <h1>About Me</h1> + <p>A little something about me.</p> +</section> 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 +--- +<?xml version="1.0" encoding="utf-8"?> +<feed xmlns="http://www.w3.org/2005/Atom"> + + <title><![CDATA[{{ page.title }} | {{ site.title }}]]></title> + <link href="{{ site.url }}/{{ page.feed_url }}" rel="self"/> + <link href="{{ site.url }}/"/> + <updated>{{ site.time | date_to_xmlschema }}</updated> + <id>{{ site.url }}/</id> + <author> + <name><![CDATA[{{ site.author | strip_html }}]]></name> + {% if site.email %}<email><![CDATA[{{ site.email }}]]></email>{% endif %} + </author> + <generator uri="http://octopress.org/">Octopress</generator> + + {% for post in site.categories[page.category] limit: 5 %} + <entry> + <title type="html"><![CDATA[{{ post.title | cdata_escape }}]]></title> + <link href="{{ site.url }}{{ post.url }}"/> + <updated>{{ post.date | date_to_xmlschema }}</updated> + <id>{{ site.url }}{{ post.id }}</id> + <content type="html"><![CDATA[{{ post.content | expand_urls: site.url | markdownify | cdata_escape }}]]></content> + </entry> + {% endfor %} +</feed> 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 --- /dev/null +++ b/source/_includes/custom/head.html diff --git a/source/_includes/custom/header.html b/source/_includes/custom/header.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/source/_includes/custom/header.html 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 @@ +<ul class="main"> + <li><a href="{{ root_url }}/l10n">中文化</a></li> + <li> + <a href="{{ root_url }}/themes">主題</a> + <ul class="sub-menu"> + <li><a href="{{ root_url }}/themes/pixivcustom">Pixiv Custom</a></li> + <li><a href="{{ root_url }}/themes/corner">Corner</a></li> + </ul> + </li> + <li> + <a href="{{ root_url }}/scripts">腳本</a> + <ul class="sub-menu"> + <li><a href="{{ root_url }}/scripts/google-plus-hover-zoom">Google+ Hover Zoom</a></li> + <li><a href="{{ root_url }}/scripts/google-plus-fxxking-filter">Google+ Fxxking Filter</a></li> + <li><a href="{{ root_url }}/scripts/google-plus-motionless">Google+ Motionless</a></li> + <li><a href="{{ root_url }}/scripts/google-plus-speed-reply">Google+ Speed Reply</a></li> + </ul> + </li> +</ul> 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 %} +<script type="text/javascript"> + var disqus_shortname = '{{ site.disqus_short_name }}'; + {% if page.comments == true %} + {% comment %} `page.comments` can be only be set to true on pages/posts, so we embed the comments here. {% endcomment %} + // var disqus_developer = 1; + var disqus_identifier = '{{ site.url }}{{ page.url }}'; + var disqus_url = '{{ site.url }}{{ page.url }}'; + var disqus_script = 'embed.js'; + {% else %} + {% comment %} As `page.comments` is empty, we must be on the index page. {% endcomment %} + var disqus_script = 'count.js'; + {% endif %} + (function () { + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = 'http://' + disqus_shortname + '.disqus.com/' + disqus_script; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + }()); +</script> +{% 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 @@ +<div class="wrap"> + {% include custom/footer.html %} + <div class="right"> + <a href="http://www.facebook.com/tommy351" title="Facebook" target="_blank">Facebook</a><a href="https://plus.google.com/105931860008509594725" title="Google+" target="_blank">Google+</a><a href="http://twitter.com/tommy351" title="Twitter" target="_blank">Twitter</a><a href="{{ site.subscribe_rss }}" title="RSS" target="_blank">RSS</a> + </div> +</div> 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 %} + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', '{{ site.google_analytics_tracking_id }}']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + </script> +{% 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 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8"> + <title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title> + <meta name="author" content="{{ site.author }}"> + + {% capture description %}{% if page.description %}{{ page.description }}{% else %}{{ content | raw_content }}{% endif %}{% endcapture %} + <meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}"> + {% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %} + + <link href="{{ site.subscribe_rss }}" rel="alternate" title="{{site.title}}" type="application/atom+xml"> + <link rel="canonical" href="{{ canonical }}"> + <link href="{{ root_url }}/favicon.png" rel="icon"> + <link href="{{ root_url }}/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css"> + <script src="{{ root_url }}/javascripts/jquery.min.js"></script> + {% include custom/head.html %} + {% include google_analytics.html %} +</head>
\ 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 @@ +<h1 class="left"><a href="{{ root_url }}/">{{ site.title }}</a></h1> +<nav class="menu left">{% include navigation.html %}</nav> +<form class="search right" action="{{ site.simple_search }}" method="get"> + <input class="left" type="text" name="q" results="0"> + <input class="left" type="submit" name="q" value="L"> + <input type="hidden" name="q" value="site:{{ site.url | shorthand_url }}"> +</form> +{% 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 %}<span class="byline author vcard">Posted by <span class="fn">{{ author }}</span></span>{% 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' %} +<div class="cat"> + {% if post %} + {{ post.categories | category_links }} + {% else %} + {{ page.categories | category_links }} + {% endif %} +</div> +{% 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 %}<time datetime="{{ date | datetime | date_to_xmlschema }}" pubdate{% if updated %} data-updated="true"{% endif %}>{{ date_formatted }}</time>{% endcapture %} +{% endif %} + +{% if was_updated != '0' %} + {% capture updated %}<time datetime="{{ updated | datetime | date_to_xmlschema }}" class="updated">Updated {{ updated_formatted }}</time>{% 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 @@ +<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> 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 @@ +<div class="addthis_toolbox addthis_default_style "> +<a class="addthis_button_facebook_like" fb:like:layout="button_count"></a> +<a class="addthis_button_tweet"></a> +<a class="addthis_button_google_plusone" g:plusone:size="medium"></a> +<a class="addthis_counter addthis_pill_style"></a> +</div> +<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4eb4a0c47196e907"></script>
\ No newline at end of file |