~xdavidwu/xdavidwu.link

3bd495f1d4f25fb4f81f73e6744048c176c4a943 — Michael Rose 8 years ago 0ccaef5
Remove extensions from _includes to simplify naming
30 files changed, 102 insertions(+), 110 deletions(-)

D _includes/absolute-url.liquid
R _includes/{archive-list-single.html => archive-list-single}
R _includes/{author-profile.html => author-profile}
A _includes/base_path
R _includes/{breadcrumbs.html => breadcrumbs}
R _includes/{browser-upgrade.html => browser-upgrade}
R _includes/{disqus-comments.html => disqus-comments}
D _includes/feed-footer.html
R _includes/{footer.html => footer}
M _includes/gallery
R _includes/{group-by-array.html => group-by-array}
R _includes/{head.html => head}
R _includes/{navigation.html => navigation}
R _includes/{scripts.html => scripts}
R _includes/{seo.html => seo}
R _includes/{social-share.html => social-share}
R _includes/{toc.html => toc}
M _layouts/default.html
M _layouts/single.html
M _pages/category-archive.html
M _pages/collection-archive.html
M _pages/home.md
M _pages/page-archive.html
M _pages/portfolio-archive.html
M _pages/recipes-archive.html
M _pages/sitemap.md
M _pages/tag-archive.html
M _pages/theme-setup.md
M _pages/year-archive.html
M _posts/2012-01-03-template-table-of-contents-post.md
D _includes/absolute-url.liquid => _includes/absolute-url.liquid +0 -1
@@ 1,1 0,0 @@
{% capture absurl %}{{ site.url }}{{ site.baseurl }}{% endcapture %}
\ No newline at end of file

R _includes/archive-list-single.html => _includes/archive-list-single +2 -2
@@ 1,8 1,8 @@
<article itemscope itemtype="http://schema.org/CreativeWork">
  {% if post.link %}
    <h2 class="link-post" itemprop="headline"><a href="{{ absurl }}{{ post.url }}">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</a> <a href="{{ post.link }}" target="_blank"><i class="fa fa-link"></i></a></h2>
    <h2 class="link-post" itemprop="headline"><a href="{{ base_path }}{{ post.url }}">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</a> <a href="{{ post.link }}" target="_blank"><i class="fa fa-link"></i></a></h2>
  {% else %}
    <h2 itemprop="headline"><a href="{{ absurl }}{{ post.url }}">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</a></h2>
    <h2 itemprop="headline"><a href="{{ base_path }}{{ post.url }}">{% if post.id %}{{ post.title | markdownify | remove: "<p>" | remove: "</p>" }}{% else %}{{ post.title }}{% endif %}</a></h2>
  {% endif %}
  {% if post.excerpt %}<p itemprop="description">{{ post.excerpt | markdownify | strip_html | truncate: 160 }}</p>{% endif %}
</article>
\ No newline at end of file

R _includes/author-profile.html => _includes/author-profile +1 -1
@@ 7,7 7,7 @@
  {% if author.avatar contains "http" %}
  	<img src="{{ author.avatar }}" class="author-avatar" alt="{{ author.name }} photo">
  {% else %}
  	<img src="{{ author.avatar | prepend: "/images/" | prepend: absurl }}" class="author-avatar" alt="{{ author.name }} photo">
  	<img src="{{ author.avatar | prepend: "/images/" | prepend: base_path }}" class="author-avatar" alt="{{ author.name }} photo">
  {% endif %}

  <h3 class="author-name">{{ author.name }}</h3>

A _includes/base_path => _includes/base_path +1 -0
@@ 0,0 1,1 @@
{% capture base_path %}{{ site.url }}{{ site.baseurl }}{% endcapture %}
\ No newline at end of file

R _includes/breadcrumbs.html => _includes/breadcrumbs +2 -2
@@ 5,7 5,7 @@
    {% for crumb in crumbs offset: 1 %}
      {% if forloop.first %}
        <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
          <a href="{{ absurl }}/" itemprop="item"><span itemprop="name">{{ site.breadcrumb_home_label }}</span></a>
          <a href="{{ base_path }}/" itemprop="item"><span itemprop="name">{{ site.breadcrumb_home_label }}</span></a>
          <meta itemprop="position" content="{{ i }}" />
        </li>
        <span class="sep">{{ site.breadcrumb_separator }}</span>


@@ 15,7 15,7 @@
      {% else %}
        {% assign i = i | plus: 1 %}
        <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
          <a href="{{ absurl }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
          <a href="{{ base_path }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
          <meta itemprop="position" content="{{ i }}" />
        </li>
        <span class="sep">{{ site.breadcrumb_separator }}</span>

R _includes/browser-upgrade.html => _includes/browser-upgrade +0 -0
R _includes/disqus-comments.html => _includes/disqus-comments +0 -0
D _includes/feed-footer.html => _includes/feed-footer.html +0 -4
@@ 1,4 0,0 @@
{% capture feed_footer %}
  <p><a href="{{ absurl }}{{ post.url }}" rel="nofollow">{{ post.title }}</a> was originally published by {{ site.owner.name }} on <a href="{{ site.url }}" rel="nofollow">{{ site.title }}</a></p>
{% endcapture %}
{{ feed_footer | markdownify | xml_escape }}
\ No newline at end of file

R _includes/footer.html => _includes/footer +0 -0
M _includes/gallery => _includes/gallery +4 -4
@@ 1,4 1,4 @@
{% include absolute-url.liquid %}
{% include base_path %}

{% if include.id %}
  {% assign gallery = page.[include.id] %}


@@ 23,14 23,14 @@
        {% if img.url contains "http" %}
          "{{ img.url }}"
        {% else %}
          "{{ img.url | prepend: "/images/" | prepend: absurl }}"
          "{{ img.url | prepend: "/images/" | prepend: base_path }}"
        {% endif %}
      >
        <img src=
          {% if img.image_path contains "http" %}
            "{{ img.image_path }}"
          {% else %}
            "{{ img.image_path | prepend: "/images/" | prepend: absurl }}"
            "{{ img.image_path | prepend: "/images/" | prepend: base_path }}"
          {% endif %}
        alt="{% if img.alt %}{{ img.alt }}{% endif %}">
      </a>


@@ 39,7 39,7 @@
        {% if img.image_path contains "http" %}
          "{{ img.image_path }}"
        {% else %}
          "{{ img.image_path | prepend: "/images/" | prepend: absurl }}"
          "{{ img.image_path | prepend: "/images/" | prepend: base_path }}"
        {% endif %}
      alt="{% if img.alt %}{{ img.alt }}{% endif %}">
    {% endif %}

R _includes/group-by-array.html => _includes/group-by-array +0 -0
R _includes/head.html => _includes/head +8 -8
@@ 1,8 1,8 @@
<meta charset="utf-8">

{% include seo.html %}
{% include seo %}

<link href="{{ absurl }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
<link href="{{ base_path }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">

<!-- http://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">


@@ 10,21 10,21 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- For all browsers -->
<link rel="stylesheet" href="{{ absurl }}/assets/css/main.css">
<link rel="stylesheet" href="{{ base_path }}/assets/css/main.css">

<meta http-equiv="cleartype" content="on">

<!-- HTML5 Shiv and Media Query Support -->
<!--[if lt IE 9]>
	<script src="{{ absurl }}/assets/js/vendor/html5shiv.min.js"></script>
	<script src="{{ absurl }}/assets/js/vendor/respond.min.js"></script>
	<script src="{{ base_path }}/assets/js/vendor/html5shiv.min.js"></script>
	<script src="{{ base_path }}/assets/js/vendor/respond.min.js"></script>
<![endif]-->

<!-- Modernizr -->
<script src="{{ absurl }}/assets/js/vendor/modernizr-2.7.1.custom.min.js"></script>
<script src="{{ base_path }}/assets/js/vendor/modernizr-2.7.1.custom.min.js"></script>

<link href="//fonts.googleapis.com/css?family=PT+Sans+Narrow:400,700%7CPT+Serif:400,700,400italic" rel="stylesheet" type="text/css">

<!-- Icons -->
<link rel="shortcut icon" href="{{ absurl }}/favicon.ico">
<link rel="shortcut icon" href="{{ absurl }}/favicon.png">
<link rel="shortcut icon" href="{{ base_path }}/favicon.ico">
<link rel="shortcut icon" href="{{ base_path }}/favicon.png">

R _includes/navigation.html => _includes/navigation +17 -17
@@ 1,19 1,19 @@
<div class="navigation-wrapper">
	<div class="site-name">
		<a href="{{ absurl }}/">{{ site.title }}</a>
	</div><!-- /.site-name -->
	<div class="top-navigation">
		<nav id="site-nav" class="nav">
		    <ul>
	        {% for link in site.data.navigation %}
				    {% if link.url contains 'http' %}
			        {% assign domain = '' %}
			        {% else %}
			        {% assign domain = absurl %}
				    {% endif %}
				    <li><a href="{{ domain }}{{ link.url }}" {% if link.url contains 'http' %}target="_blank"{% endif %}>{{ link.title }}</a></li>
					{% endfor %}
		    </ul>
		</nav>
	</div><!-- /.top-navigation -->
  <div class="site-name">
    <a href="{{ base_path }}/">{{ site.title }}</a>
  </div><!-- /.site-name -->
  <div class="top-navigation">
    <nav id="site-nav" class="nav">
        <ul>
          {% for link in site.data.navigation %}
            {% if link.url contains 'http' %}
              {% assign domain = '' %}
              {% else %}
              {% assign domain = base_path %}
            {% endif %}
            <li><a href="{{ domain }}{{ link.url }}" {% if link.url contains 'http' %}target="_blank"{% endif %}>{{ link.title }}</a></li>
          {% endfor %}
        </ul>
    </nav>
  </div><!-- /.top-navigation -->
</div><!-- /.navigation-wrapper -->

R _includes/scripts.html => _includes/scripts +3 -3
@@ 1,6 1,6 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ absurl }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="{{ absurl }}/assets/js/scripts.min.js"></script>
<script>window.jQuery || document.write('<script src="{{ base_path }}/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="{{ base_path }}/assets/js/scripts.min.js"></script>

{% if site.google_analytics %}
<script>


@@ 16,5 16,5 @@
{% endif %}

{% if page.comments %}
  {% include disqus-comments.html %}
  {% include disqus-comments %}
{% endif %}

R _includes/seo.html => _includes/seo +3 -3
@@ 58,11 58,11 @@

  {% if page.header.image %}
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: absurl }}{% endif %}">
    <meta name="twitter:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
  {% else %}
    <meta name="twitter:card" content="summary">
    {% if site.logo %}
      <meta name="twitter:image" content="{{ site.logo | prepend: "/images/" | prepend: absurl }}">
      <meta name="twitter:image" content="{{ site.logo | prepend: "/images/" | prepend: base_path }}">
    {% endif %}
  {% endif %}



@@ 82,7 82,7 @@
{% endif %}

{% if page.header.image %}
  <meta property="og:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: absurl }}{% endif %}">
  <meta property="og:image" content="{% if page.header.image contains "http" %}{{ page.header.image }}{% else %}{{ page.header.image | prepend: "/images/" | prepend: base_path }}{% endif %}">
{% endif %}

{% if page.date %}

R _includes/social-share.html => _includes/social-share +3 -3
@@ 2,13 2,13 @@
  <h4>Share on</h4>
  <ul>
    <li>
      <a href="https://twitter.com/intent/tweet?text={{ absurl }}{{ page.url }}" class="twitter" title="Share on Twitter"><i class="fa fa-twitter"></i><span> Twitter</span></a>
      <a href="https://twitter.com/intent/tweet?text={{ base_path }}{{ page.url }}" class="twitter" title="Share on Twitter"><i class="fa fa-twitter"></i><span> Twitter</span></a>
    </li>
    <li>
      <a href="https://www.facebook.com/sharer/sharer.php?u={{ absurl }}{{ page.url }}" class="facebook" title="Share on Facebook"><i class="fa fa-facebook"></i><span> Facebook</span></a>
      <a href="https://www.facebook.com/sharer/sharer.php?u={{ base_path }}{{ page.url }}" class="facebook" title="Share on Facebook"><i class="fa fa-facebook"></i><span> Facebook</span></a>
    </li>
    <li>
      <a href="https://plus.google.com/share?url={{ absurl }}{{ page.url }}" class="google-plus" title="Share on Google Plus"><i class="fa fa-google-plus"></i><span> Google+</span></a>
      <a href="https://plus.google.com/share?url={{ base_path }}{{ page.url }}" class="google-plus" title="Share on Google Plus"><i class="fa fa-google-plus"></i><span> Google+</span></a>
    </li>
  </ul>
</div><!-- /.social-share -->
\ No newline at end of file

R _includes/toc.html => _includes/toc +2 -4
@@ 1,9 1,7 @@
<section id="table-of-contents" class="toc">
  <header>
    <h3><i class="fa fa-book"></i> Overview</h3>
  </header>
<header><h3><i class="fa fa-{{ include.icon | default: 'book' }}"></i> {{ include.title | default: "Overview" }}</h3></header>
<div id="drawer" markdown="1">
*  Auto generated table of contents
{:toc}
</div>
</section><!-- /#table-of-contents -->
\ No newline at end of file
</section>
\ No newline at end of file

M _layouts/default.html => _layouts/default.html +10 -10
@@ 2,18 2,18 @@
layout: compress
---

{% include absolute-url.liquid %}
{% include base_path %}

<!DOCTYPE html>
<html lang="{{ site.locale | slice: 0,2 }}">
  <head>
  {% include head.html %}
  {% include head %}
  </head>

  <body>

  {% include browser-upgrade.html %}
  {% include navigation.html %}
  {% include browser-upgrade %}
  {% include navigation %}

  {% if page.header.image %}
    <div class="image-wrap">


@@ 21,7 21,7 @@ layout: compress
        {% if page.header.image contains "http" %}
          "{{ page.header.image }}"
        {% else %}
          "{{ page.header.image | prepend: "/images/" | prepend: absurl }}"
          "{{ page.header.image | prepend: "/images/" | prepend: base_path }}"
        {% endif %}
        alt="{{ page.title }}">
      {% if page.header.caption %}


@@ 31,12 31,12 @@ layout: compress
  {% endif %}

  {% if site.breadcrumbs %}
    {% include breadcrumbs.html %}
    {% include breadcrumbs %}
  {% endif %}

  <div id="main" role="main">
    <div class="sidebar">
      {% if page.author_profile %}{% include author-profile.html %}{% endif %}
      {% if page.author_profile %}{% include author-profile %}{% endif %}
      {% if page.sidebar %}
        {% for s in page.sidebar %}
          {% if s.image %}


@@ 44,7 44,7 @@ layout: compress
            {% if s.image contains "http" %}
              "{{ s.image }}"
            {% else %}
              "{{ s.image | prepend: "/images/" | prepend: absurl }}"
              "{{ s.image | prepend: "/images/" | prepend: base_path }}"
            {% endif %}
            alt="{% if s.image_alt %}{{ s.image_alt }}{% endif %}">
          {% endif %}


@@ 59,11 59,11 @@ layout: compress

  <div class="footer-wrap">
    <footer>
      {% include footer.html %}
      {% include footer %}
    </footer>
  </div><!-- /.footer-wrap -->

  {% include scripts.html %}
  {% include scripts %}

  </body>
</html>

M _layouts/single.html => _layouts/single.html +5 -5
@@ 2,7 2,7 @@
layout: default
---

{% include absolute-url.liquid %}
{% include base_path %}

<article class="post" itemscope itemtype="http://schema.org/CreativeWork">
  {% if page.excerpt %}<meta itemprop="description" content="{{ page.excerpt | markdownify | strip_html | strip_newlines | escape_once }}">{% endif %}


@@ 14,7 14,7 @@ layout: default
      {% if page.link %}
        <h1 itemprop="headline"><a href="{{ page.link }}">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a></h1>
      {% else %}
        <h1 itemprop="headline"><a href="{{ absurl }}{{ page.url }}" rel="bookmark">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a></h1>
        <h1 itemprop="headline"><a href="{{ base_path }}{{ page.url }}" rel="bookmark">{{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}</a></h1>
      {% endif %}
    </header>



@@ 25,7 25,7 @@ layout: default
    <hr />

    <footer role="contentinfo">
      {% if page.share %}{% include social-share.html %}{% endif %}
      {% if page.share %}{% include social-share %}{% endif %}
      {% if page.date %}
        <p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %}.</p>
      {% endif %}


@@ 40,10 40,10 @@ layout: default
{% comment %}<!-- only show related on a post page when not disabled -->{% endcomment %}
{% if page.id and page.related and site.related_posts.size > 0 %}
  <div class="related-articles">
  <h4>You might also enjoy <small class="pull-right">(<a href="{{ absurl }}/posts/">View all posts</a>)</small></h4>
  <h4>You might also enjoy <small class="pull-right">(<a href="{{ base_path }}/posts/">View all posts</a>)</small></h4>
    <ul>
    {% for post in site.related_posts limit:3 %}
      <li><a href="{{ absurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
      <li><a href="{{ base_path }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></li>
    {% endfor %}
    </ul>
    <hr />

M _pages/category-archive.html => _pages/category-archive.html +3 -3
@@ 5,13 5,13 @@ title: "Posts by Category"
author_profile: false
---

{% include absolute-url.liquid %}
{% include group-by-array.html collection=site.posts field='categories' %}
{% include base_path %}
{% include group-by-array collection=site.posts field='categories' %}

{% for category in group_names %}
  {% assign posts = group_items[forloop.index0] %}
  <h3>{{ category }}</h3>
  {% for post in posts %}
    {% include archive-list-single.html %}
    {% include archive-list-single %}
  {% endfor %}
{% endfor %}
\ No newline at end of file

M _pages/collection-archive.html => _pages/collection-archive.html +2 -2
@@ 5,7 5,7 @@ permalink: /collection-archive/
author_profile: false
---

{% include absolute-url.liquid %}
{% include base_path %}
{% capture written_label %}'None'{% endcapture %}

{% for collection in site.collections %}


@@ 18,7 18,7 @@ author_profile: false
  {% endunless %}
  {% for post in collection.docs %}
    {% unless collection.output == false or collection.label == 'posts' %}
      {% include archive-list-single.html %}
      {% include archive-list-single %}
    {% endunless %}
  {% endfor %}
{% endfor %}
\ No newline at end of file

M _pages/home.md => _pages/home.md +2 -2
@@ 7,10 7,10 @@ header:
  caption: "Photo credit: [**Unsplash**](https://unsplash.com)"
---

{% include absolute-url.liquid %}
{% include base_path %}

### Recent Posts

{% for post in site.posts limit:5 %}
  {% include archive-list-single.html %}
  {% include archive-list-single %}
{% endfor %}
\ No newline at end of file

M _pages/page-archive.html => _pages/page-archive.html +2 -2
@@ 5,7 5,7 @@ permalink: /page-archive/
author_profile: false
---

{% include absolute-url.liquid %}
{% include base_path %}
{% for post in site.pages %}
  {% include archive-list-single.html %}
  {% include archive-list-single %}
{% endfor %}
\ No newline at end of file

M _pages/portfolio-archive.html => _pages/portfolio-archive.html +3 -3
@@ 4,13 4,13 @@ title: "Portfolio"
permalink: /portfolio/
---

{% include absolute-url.liquid %}
{% include group-by-array.html collection=site.portfolio field='categories' %}
{% include base_path %}
{% include group-by-array collection=site.portfolio field='categories' %}

{% for category in group_names %}
  {% assign posts = group_items[forloop.index0] %}
  <h3>{{ category }}</h3>
  {% for post in posts %}
    {% include archive-list-single.html %}
    {% include archive-list-single %}
  {% endfor %}
{% endfor %}
\ No newline at end of file

M _pages/recipes-archive.html => _pages/recipes-archive.html +3 -3
@@ 5,13 5,13 @@ permalink: /recipes/
author_profile: false
---

{% include absolute-url.liquid %}
{% include group-by-array.html collection=site.recipes field='categories' %}
{% include base_path %}
{% include group-by-array collection=site.recipes field='categories' %}

{% for category in group_names %}
  {% assign posts = group_items[forloop.index0] %}
  <h3>{{ category }}</h3>
  {% for post in posts %}
    {% include archive-list-single.html %}
    {% include archive-list-single %}
  {% endfor %}
{% endfor %}
\ No newline at end of file

M _pages/sitemap.md => _pages/sitemap.md +5 -5
@@ 5,18 5,18 @@ permalink: /sitemap/
author_profile: false
---

{% include absolute-url.liquid %}
{% include base_path %}

A list of all the posts and pages found on the site. For you robots out there is an [XML version]({{ absurl }}/sitemap.xml) available for digesting as well.
A list of all the posts and pages found on the site. For you robots out there is an [XML version]({{ base_path }}/sitemap.xml) available for digesting as well.

<h3>Pages</h3>
{% for post in site.pages %}
  {% include archive-list-single.html %}
  {% include archive-list-single %}
{% endfor %}

<h3>Posts</h3>
{% for post in site.posts %}
  {% include archive-list-single.html %}
  {% include archive-list-single %}
{% endfor %}

{% capture written_label %}'None'{% endcapture %}


@@ 31,7 31,7 @@ A list of all the posts and pages found on the site. For you robots out there is
{% endunless %}
{% for post in collection.docs %}
  {% unless collection.output == false or collection.label == 'posts' %}
  {% include archive-list-single.html %}
  {% include archive-list-single %}
  {% endunless %}
{% endfor %}
{% endfor %}
\ No newline at end of file

M _pages/tag-archive.html => _pages/tag-archive.html +3 -3
@@ 4,13 4,13 @@ permalink: /tag-archive/
title: "Posts by Tags"
---

{% include absolute-url.liquid %}
{% include group-by-array.html collection=site.posts field='tags' %}
{% include base_path %}
{% include group-by-array collection=site.posts field='tags' %}

{% for tag in group_names %}
  {% assign posts = group_items[forloop.index0] %}
  <h3>{{ tag }}</h3>
  {% for post in posts %}
    {% include archive-list-single.html %}
    {% include archive-list-single %}
  {% endfor %}
{% endfor %}
\ No newline at end of file

M _pages/theme-setup.md => _pages/theme-setup.md +8 -8
@@ 7,7 7,7 @@ share: true
comments: true
---

{% include toc.html %}
{% include toc %}

## Installation



@@ 58,13 58,13 @@ How Minimal Mistakes is organized and what the various files are. All posts, lay
minimal-mistakes/
├── _includes/
|    ├── author-bio.html        # bio stuff layout. pulls optional owner data from _config.yml
|    ├── browser-upgrade.html   # prompt to install a modern browser for < IE9
|    ├── disqus-comments.html   # Disqus comments script
|    ├── footer.html            # site footer
|    ├── head.html              # site head
|    ├── navigation.html        # site top navigation
|    ├── browser-upgrade   # prompt to install a modern browser for < IE9
|    ├── disqus-comments   # Disqus comments script
|    ├── footer            # site footer
|    ├── head              # site head
|    ├── navigation        # site top navigation
|    ├── open-graph.html        # Twitter Cards and Open Graph meta data
|    └── scripts.html           # site scripts
|    └── scripts           # site scripts
├── _layouts/
|    ├── home.html               # homepage layout
|    ├── page.html               # page layout


@@ 296,7 296,7 @@ Not sure if this only effects Kramdown or if it's an issue with Markdown in gene

### Social Sharing Links

Social sharing links for Twitter, Facebook, and Google+ are included on posts/pages by default. To hide them on specific posts or pages add `share: false` to the YAML Front Matter. If you'd like to use different social networks modify `_includes/social-share.html` to your liking. Icons are set using [Font Awesome](http://fontawesome.io).
Social sharing links for Twitter, Facebook, and Google+ are included on posts/pages by default. To hide them on specific posts or pages add `share: false` to the YAML Front Matter. If you'd like to use different social networks modify `_includes/social-share` to your liking. Icons are set using [Font Awesome](http://fontawesome.io).

---


M _pages/year-archive.html => _pages/year-archive.html +2 -2
@@ 5,7 5,7 @@ title: "Posts by Year"
author_profile: false
---

{% include absolute-url.liquid %}
{% include base_path %}
{% capture written_year %}'None'{% endcapture %}
{% for post in site.posts %}
  {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}


@@ 13,5 13,5 @@ author_profile: false
    <h3>{{ year }}</h3>
    {% capture written_year %}{{ year }}{% endcapture %}
  {% endif %}
  {% include archive-list-single.html %}
  {% include archive-list-single %}
{% endfor %}
\ No newline at end of file

M _posts/2012-01-03-template-table-of-contents-post.md => _posts/2012-01-03-template-table-of-contents-post.md +8 -10
@@ 4,15 4,13 @@ tags:
  - table of contents
---

<section id="table-of-contents" class="toc">
  <header>
    <h3>Overview</h3>
  </header>
<div id="drawer" markdown="1">
*  Auto generated table of contents
{:toc}
</div>
</section><!-- /#table-of-contents -->
{% include toc title="Unique Title" icon="file-text" %}

Testing Kramdown auto-generated table of contents with unique title and icon assigned in the include like so:

```liquid
{% raw %}{% include toc title="Unique Title" icon="file-text" %}{% endraw %}
```

## HTML Elements



@@ 34,7 32,7 @@ Below is just about everything you'll need to style in the theme. Check the sour

Lorem ipsum dolor sit amet, test link adipiscing elit. **This is strong**. Nullam dignissim convallis est. Quisque aliquam.

![Smithsonian Image]({{ site.url }}/images/3953273590_704e3899d5_m.jpg)
![Smithsonian Image]({{ site.url }}{{ site.baseurl }}/images/3953273590_704e3899d5_m.jpg)
{: .image-pull-right}

*This is emphasized*. Donec faucibus. Nunc iaculis suscipit dui. 53 = 125. Water is H2O. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. The New York Times (That’s a citation). Underline.Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.