From d139da3a3277f73d7f01e4283d8dc01630a5317c Mon Sep 17 00:00:00 2001 From: Zhiming Wang <zmwangx@gmail.com> Date: Mon, 20 Oct 2014 16:38:24 -0700 Subject: initial setup --- source/_layouts/page.html | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 source/_layouts/page.html (limited to 'source/_layouts/page.html') diff --git a/source/_layouts/page.html b/source/_layouts/page.html new file mode 100644 index 00000000..8ba6ec94 --- /dev/null +++ b/source/_layouts/page.html @@ -0,0 +1,42 @@ +--- +layout: default +--- + +<div> +<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 %} +</div> +{% unless page.sidebar == false %} +<aside class="sidebar"> + {% if site.page_asides.size %} + {% include_array page_asides %} + {% else %} + {% include_array default_asides %} + {% endif %} +</aside> +{% endunless %} -- cgit v1.2.1