Update to site
This commit is contained in:
parent
3345fa5897
commit
b0bdfe2fe9
244 changed files with 11618 additions and 12 deletions
17
source/_layouts/category_index.html
Normal file
17
source/_layouts/category_index.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
layout: page
|
||||
title: "Blog index"
|
||||
---
|
||||
|
||||
<div id="archive-list">
|
||||
{% 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 blog/archive_post.html %}
|
||||
</article>
|
||||
{% endfor %}
|
||||
</div>
|
46
source/_layouts/default.html
Normal file
46
source/_layouts/default.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
{% capture root_url %}{{ site.root | strip_slash }}{% endcapture %}{% include site/head.html %}
|
||||
|
||||
<body {% if page.body_id %} id="{{ page.body_id }}"{% endif %}>
|
||||
|
||||
<header>
|
||||
{% include site/header.html %}
|
||||
</header>
|
||||
|
||||
{% if page.hero_unit %}
|
||||
{% include site/hero_unit.html %}
|
||||
{% endif %}
|
||||
|
||||
<div class="grid-wrapper">
|
||||
<div class="grid grid-center">
|
||||
{% if page.is_post and page.sidebar == false %}
|
||||
<div class="grid__item four-fifths lap-one-whole palm-one-whole">
|
||||
{% elsif page.is_homepage %}
|
||||
<div class="grid__item one-whole">
|
||||
{% else %}
|
||||
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
|
||||
{% endif %}
|
||||
|
||||
{{ content | expand_urls: root_url }}
|
||||
|
||||
</div>
|
||||
|
||||
{% unless page.sidebar == false %}
|
||||
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
|
||||
{% include site/sidebar.html %}
|
||||
</aside>
|
||||
{% endunless %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
{% include site/footer.html %}
|
||||
</footer>
|
||||
|
||||
<!--[if lt IE 7]>
|
||||
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
|
||||
<![endif]-->
|
||||
|
||||
{% include javascripts/scripts.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
18
source/_layouts/page.html
Normal file
18
source/_layouts/page.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<article class="page">
|
||||
|
||||
{% if page.title and page.show_title != false %}
|
||||
<header>
|
||||
<h1 class="title indent">
|
||||
{% if site.titlecase %}{{ page.title | titlecase }}{% else %}{{ page.title }}{% endif %}
|
||||
</h1>
|
||||
</header>
|
||||
<hr class="divider">
|
||||
{% endif %}
|
||||
|
||||
{{ content }}
|
||||
|
||||
</article>
|
15
source/_layouts/post.html
Normal file
15
source/_layouts/post.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
layout: default
|
||||
is_post: true
|
||||
---
|
||||
|
||||
<article class="post">
|
||||
{% include blog/post/article.html %}
|
||||
</article>
|
||||
|
||||
{% if site.disqus_short_name and page.comments == true %}
|
||||
<section id="disqus">
|
||||
<h1 class="indent title">Comments</h1>
|
||||
<div id="disqus_thread" aria-live="polite">{% include blog/post/disqus_thread.html %}</div>
|
||||
</section>
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue