Add file extensions back to non-helper _includes

This commit is contained in:
Michael Rose 2016-03-10 21:13:01 -05:00
parent 8d046af7a9
commit f63b8fe294
33 changed files with 46 additions and 31 deletions

View file

@ -2,11 +2,11 @@
{% case site.analytics.provider %}
{% when "google" %}
{% include /analytics-providers/google %}
{% include /analytics-providers/google.html %}
{% when "google-universal" %}
{% include /analytics-providers/google-universal %}
{% include /analytics-providers/google-universal.html %}
{% when "custom" %}
{% include /analytics-providers/custom %}
{% include /analytics-providers/custom.html %}
{% endcase %}
{% endif %}

View file

@ -1 +0,0 @@
<!--[if lt IE 9]><div class="browser-upgrade alert alert-info">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</div><![endif]-->

View file

@ -0,0 +1,3 @@
<!--[if lt IE 9]>
<div class="notice--danger center">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</div>
<![endif]-->

View file

@ -1,6 +1,6 @@
<meta charset="utf-8">
{% include seo %}
{% include seo.html %}
<link href="{{ base_path }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">

View file

@ -0,0 +1,15 @@
{% comment %}
<!-- Sort page.tags alphabetically regardless of case e.g. a B c d E -->
<!-- modified from http://www.codeofclimber.ru/2015/sorting-site-tags-in-jekyll/ -->
{% endcomment %}
{% capture page_tags %}{% for tag in page.tags %}{{ tag | downcase }}#{{ tag }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_hashes = (page_tags | split: ',' | sort:0) %}
Filed under: <span class="post__taxonomy-wrapper" itemprop="keywords">
{% for hash in tag_hashes %}
{% assign keyValue = hash | split: '#' %}
{% capture tag_word %}{{ keyValue[1] | strip_newlines }}{% endcapture %}
{% if forloop.last %} and{% endif %} <a href="{{ site.url }}{{ tag_word | slugify | prepend: '/tag/' | append: '/' }}" class="post__taxonomy-item" rel="tag">{{ tag_word }}</a>{% unless forloop.last %}, {% endunless %}
{% endfor %}
</span>

View file

@ -2,5 +2,5 @@
<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/main.min.js"></script>
{% include analytics %}
{% include comments %}
{% include analytics.html %}
{% include comments.html %}

View file

@ -7,13 +7,13 @@ layout: compress
<!DOCTYPE html>
<html lang="{{ site.locale | slice: 0,2 }}">
<head>
{% include head %}
{% include head.html %}
</head>
<body>
{% include browser-upgrade %}
{% include navigation %}
{% include browser-upgrade.html %}
{% include masthead.html %}
{% if page.header.image %}
<div class="page__hero">
@ -31,12 +31,12 @@ layout: compress
{% endif %}
{% if site.breadcrumbs %}
{% include breadcrumbs %}
{% include breadcrumbs.html %}
{% endif %}
<div id="main" role="main">
<div class="sidebar sticky">
{% if page.author_profile %}{% include author-profile %}{% endif %}
{% if page.author_profile %}{% include author-profile.html %}{% endif %}
{% if page.sidebar %}
{% for s in page.sidebar %}
{% if s.image %}
@ -59,11 +59,11 @@ layout: compress
<div class="footer-wrap">
<footer>
{% include footer %}
{% include footer.html %}
</footer>
</div><!-- /.footer-wrap -->
{% include scripts %}
{% include scripts.html %}
</body>
</html>

View file

@ -19,10 +19,8 @@ layout: default
{% if page.link %}<div><a href="{{ page.link }}" class="btn">{{ site.data.ui-text[site.locale].ext_link_label }}</a></div>{% endif %}
</section>
<hr />
<footer role="contentinfo">
{% if site.share and page.share %}{% include social-share %}{% endif %}
<footer>
{% if site.share and page.share %}{% include social-share.html %}{% endif %}
{% if page.modified %}
<p class="byline"><strong>{{ site.data.ui-text[site.locale].date_label }}</strong> <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time></p>
{% elsif page.date %}

View file

@ -12,6 +12,6 @@ author_profile: false
{% assign posts = group_items[forloop.index0] %}
<h2 class="archive__subtitle">{{ category }}</h2>
{% for post in posts %}
{% include archive-list-single %}
{% include archive-list-single.html %}
{% endfor %}
{% endfor %}

View file

@ -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 %}
{% include archive-list-single.html %}
{% endunless %}
{% endfor %}
{% endfor %}

View file

@ -7,5 +7,5 @@ author_profile: false
{% include base_path %}
{% for post in site.pages %}
{% include archive-list-single %}
{% include archive-list-single.html %}
{% endfor %}

View file

@ -11,6 +11,6 @@ permalink: /portfolio/
{% assign posts = group_items[forloop.index0] %}
<h2 class="archive__subtitle">{{ category }}</h2>
{% for post in posts %}
{% include archive-list-single %}
{% include archive-list-single.html %}
{% endfor %}
{% endfor %}

View file

@ -12,6 +12,6 @@ author_profile: false
{% assign posts = group_items[forloop.index0] %}
<h2 class="archive__subtitle">{{ category }}</h2>
{% for post in posts %}
{% include archive-list-single %}
{% include archive-list-single.html %}
{% endfor %}
{% endfor %}

View file

@ -11,12 +11,12 @@ A list of all the posts and pages found on the site. For you robots out there is
<h2>Pages</h2>
{% for post in site.pages %}
{% include archive-list-single %}
{% include archive-list-single.html %}
{% endfor %}
<h2>Posts</h2>
{% for post in site.posts %}
{% include archive-list-single %}
{% include archive-list-single.html %}
{% 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 %}
{% include archive-list-single.html %}
{% endunless %}
{% endfor %}
{% endfor %}

View file

@ -12,6 +12,6 @@ author_profile: false
{% assign posts = group_items[forloop.index0] %}
<h2 class="archive__subtitle">{{ tag }}</h2>
{% for post in posts %}
{% include archive-list-single %}
{% include archive-list-single.html %}
{% endfor %}
{% endfor %}

View file

@ -13,5 +13,5 @@ author_profile: false
<h2 class="archive__subtitle">{{ year }}</h2>
{% capture written_year %}{{ year }}{% endcapture %}
{% endif %}
{% include archive-list-single %}
{% include archive-list-single.html %}
{% endfor %}

View file

@ -8,10 +8,10 @@ header:
{% include base_path %}
<h3>Recent Posts</h3>
<h3 class="archive__subtitle">Recent Posts</h3>
{% for post in paginator.posts %}
{% include archive-list-single %}
{% include archive-list-single.html %}
{% endfor %}
{% include pagination %}
{% include pagination.html %}