summaryrefslogtreecommitdiffstats
path: root/source/_layouts
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/_layouts
downloadoctopress-theme-jeyzu-1c574d24b7fdd482499fa9553c19342b6a4d391e.zip
octopress-theme-jeyzu-1c574d24b7fdd482499fa9553c19342b6a4d391e.tar.gz
created
Diffstat (limited to 'source/_layouts')
-rw-r--r--source/_layouts/category_index.html17
-rw-r--r--source/_layouts/default.html11
-rw-r--r--source/_layouts/page.html35
-rw-r--r--source/_layouts/post.html16
4 files changed, 79 insertions, 0 deletions
diff --git a/source/_layouts/category_index.html b/source/_layouts/category_index.html
new file mode 100644
index 0000000..85a6307
--- /dev/null
+++ b/source/_layouts/category_index.html
@@ -0,0 +1,17 @@
+---
+layout: page
+footer: false
+---
+
+<div id="blog-archives" class="category">
+{% for post in site.categories[page.category] %}
+{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
+{% unless year == this_year %}
+ {% assign year = this_year %}
+ <h2>{{ year }}</h2>
+{% endunless %}
+<article>
+ {% include archive_post.html %}
+</article>
+{% endfor %}
+</div>
diff --git a/source/_layouts/default.html b/source/_layouts/default.html
new file mode 100644
index 0000000..a9cffe9
--- /dev/null
+++ b/source/_layouts/default.html
@@ -0,0 +1,11 @@
+{% capture root_url %}{{ site.root | strip_slash }}{% endcapture %}
+{% include head.html %}
+
+<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %} {% if page.sidebar == 'collapse' or site.sidebar == 'collapse' %} class="collapse-sidebar sidebar-footer" {% endif %}>
+ <header id="header" class="inner">{% include header.html %}</header>
+ {% include banner.html %}
+ <div id="content" class="inner">{{ content | expand_urls: root_url }}</div>
+ <footer id="footer" class="inner">{% include footer.html %}</footer>
+ {% include after_footer.html %}
+</body>
+</html> \ No newline at end of file
diff --git a/source/_layouts/page.html b/source/_layouts/page.html
new file mode 100644
index 0000000..9a02019
--- /dev/null
+++ b/source/_layouts/page.html
@@ -0,0 +1,35 @@
+---
+layout: default
+---
+
+<article role="article">
+ {% if page.title %}
+ <header>
+ <h1 class="entry-title">{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}</h1>
+ {% if page.date %}<p class="meta">{% include post/date.html %}{{ time }}</p>{% endif %}
+ </header>
+ {% endif %}
+ {{ content }}
+ {% unless page.footer == false %}
+ <footer>
+ {% if page.date or page.author %}<p class="meta">
+ {% if page.author %}{% include post/author.html %}{% endif %}
+ {% include post/date.html %}{% if updated %}{{ updated }}{% else %}{{ time }}{% endif %}
+ {% if page.categories %}{% include post/categories.html %}{% endif %}
+ </p>{% endif %}
+ {% unless page.sharing == false %}
+ {% include post/sharing.html %}
+ {% endunless %}
+ </footer>
+ {% endunless %}
+</article>
+{% if site.disqus_short_name and page.comments == true %}
+ <section>
+ <h1>Comments</h1>
+ <div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
+ </section>
+{% endif %}
+{% unless page.sidebar == false %}
+{% include asides.html %}
+{% endunless %}
+<div class="clear"></div> \ No newline at end of file
diff --git a/source/_layouts/post.html b/source/_layouts/post.html
new file mode 100644
index 0000000..b21698c
--- /dev/null
+++ b/source/_layouts/post.html
@@ -0,0 +1,16 @@
+---
+layout: default
+single: true
+---
+
+<section id="main_col" class="left">
+ <article class="post">{% include article.html %}</article>
+ <section id="comments">
+ <h3>留言</h3>
+ <div id="disqus_thread" aria-live="polite">{% include post/disqus_thread.html %}</div>
+ </section>
+</section>
+{% unless page.sidebar == false %}
+{% include asides.html %}
+{% endunless %}
+<div class="clear"></div> \ No newline at end of file