Add file extensions back to non-helper _includes
This commit is contained in:
parent
8d046af7a9
commit
f63b8fe294
33 changed files with 46 additions and 31 deletions
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
{% case site.analytics.provider %}
|
{% case site.analytics.provider %}
|
||||||
{% when "google" %}
|
{% when "google" %}
|
||||||
{% include /analytics-providers/google %}
|
{% include /analytics-providers/google.html %}
|
||||||
{% when "google-universal" %}
|
{% when "google-universal" %}
|
||||||
{% include /analytics-providers/google-universal %}
|
{% include /analytics-providers/google-universal.html %}
|
||||||
{% when "custom" %}
|
{% when "custom" %}
|
||||||
{% include /analytics-providers/custom %}
|
{% include /analytics-providers/custom.html %}
|
||||||
{% endcase %}
|
{% endcase %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
|
@ -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]-->
|
|
3
_includes/browser-upgrade.html
Normal file
3
_includes/browser-upgrade.html
Normal 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]-->
|
|
@ -1,6 +1,6 @@
|
||||||
<meta charset="utf-8">
|
<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">
|
<link href="{{ base_path }}/feed.xml" type="application/atom+xml" rel="alternate" title="{{ site.title }} Feed">
|
||||||
|
|
15
_includes/page__taxonomy.html
Normal file
15
_includes/page__taxonomy.html
Normal 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>
|
|
@ -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>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>
|
<script src="{{ base_path }}/assets/js/main.min.js"></script>
|
||||||
|
|
||||||
{% include analytics %}
|
{% include analytics.html %}
|
||||||
{% include comments %}
|
{% include comments.html %}
|
|
@ -7,13 +7,13 @@ layout: compress
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="{{ site.locale | slice: 0,2 }}">
|
<html lang="{{ site.locale | slice: 0,2 }}">
|
||||||
<head>
|
<head>
|
||||||
{% include head %}
|
{% include head.html %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
{% include browser-upgrade %}
|
{% include browser-upgrade.html %}
|
||||||
{% include navigation %}
|
{% include masthead.html %}
|
||||||
|
|
||||||
{% if page.header.image %}
|
{% if page.header.image %}
|
||||||
<div class="page__hero">
|
<div class="page__hero">
|
||||||
|
@ -31,12 +31,12 @@ layout: compress
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.breadcrumbs %}
|
{% if site.breadcrumbs %}
|
||||||
{% include breadcrumbs %}
|
{% include breadcrumbs.html %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div id="main" role="main">
|
<div id="main" role="main">
|
||||||
<div class="sidebar sticky">
|
<div class="sidebar sticky">
|
||||||
{% if page.author_profile %}{% include author-profile %}{% endif %}
|
{% if page.author_profile %}{% include author-profile.html %}{% endif %}
|
||||||
{% if page.sidebar %}
|
{% if page.sidebar %}
|
||||||
{% for s in page.sidebar %}
|
{% for s in page.sidebar %}
|
||||||
{% if s.image %}
|
{% if s.image %}
|
||||||
|
@ -59,11 +59,11 @@ layout: compress
|
||||||
|
|
||||||
<div class="footer-wrap">
|
<div class="footer-wrap">
|
||||||
<footer>
|
<footer>
|
||||||
{% include footer %}
|
{% include footer.html %}
|
||||||
</footer>
|
</footer>
|
||||||
</div><!-- /.footer-wrap -->
|
</div><!-- /.footer-wrap -->
|
||||||
|
|
||||||
{% include scripts %}
|
{% include scripts.html %}
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -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 %}
|
{% if page.link %}<div><a href="{{ page.link }}" class="btn">{{ site.data.ui-text[site.locale].ext_link_label }}</a></div>{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<hr />
|
<footer>
|
||||||
|
{% if site.share and page.share %}{% include social-share.html %}{% endif %}
|
||||||
<footer role="contentinfo">
|
|
||||||
{% if site.share and page.share %}{% include social-share %}{% endif %}
|
|
||||||
{% if page.modified %}
|
{% 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>
|
<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 %}
|
{% elsif page.date %}
|
||||||
|
|
|
@ -12,6 +12,6 @@ author_profile: false
|
||||||
{% assign posts = group_items[forloop.index0] %}
|
{% assign posts = group_items[forloop.index0] %}
|
||||||
<h2 class="archive__subtitle">{{ category }}</h2>
|
<h2 class="archive__subtitle">{{ category }}</h2>
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -18,7 +18,7 @@ author_profile: false
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% for post in collection.docs %}
|
{% for post in collection.docs %}
|
||||||
{% unless collection.output == false or collection.label == 'posts' %}
|
{% unless collection.output == false or collection.label == 'posts' %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -7,5 +7,5 @@ author_profile: false
|
||||||
|
|
||||||
{% include base_path %}
|
{% include base_path %}
|
||||||
{% for post in site.pages %}
|
{% for post in site.pages %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -11,6 +11,6 @@ permalink: /portfolio/
|
||||||
{% assign posts = group_items[forloop.index0] %}
|
{% assign posts = group_items[forloop.index0] %}
|
||||||
<h2 class="archive__subtitle">{{ category }}</h2>
|
<h2 class="archive__subtitle">{{ category }}</h2>
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -12,6 +12,6 @@ author_profile: false
|
||||||
{% assign posts = group_items[forloop.index0] %}
|
{% assign posts = group_items[forloop.index0] %}
|
||||||
<h2 class="archive__subtitle">{{ category }}</h2>
|
<h2 class="archive__subtitle">{{ category }}</h2>
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -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>
|
<h2>Pages</h2>
|
||||||
{% for post in site.pages %}
|
{% for post in site.pages %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<h2>Posts</h2>
|
<h2>Posts</h2>
|
||||||
{% for post in site.posts %}
|
{% for post in site.posts %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% capture written_label %}'None'{% endcapture %}
|
{% 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 %}
|
{% endunless %}
|
||||||
{% for post in collection.docs %}
|
{% for post in collection.docs %}
|
||||||
{% unless collection.output == false or collection.label == 'posts' %}
|
{% unless collection.output == false or collection.label == 'posts' %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endunless %}
|
{% endunless %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -12,6 +12,6 @@ author_profile: false
|
||||||
{% assign posts = group_items[forloop.index0] %}
|
{% assign posts = group_items[forloop.index0] %}
|
||||||
<h2 class="archive__subtitle">{{ tag }}</h2>
|
<h2 class="archive__subtitle">{{ tag }}</h2>
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -13,5 +13,5 @@ author_profile: false
|
||||||
<h2 class="archive__subtitle">{{ year }}</h2>
|
<h2 class="archive__subtitle">{{ year }}</h2>
|
||||||
{% capture written_year %}{{ year }}{% endcapture %}
|
{% capture written_year %}{{ year }}{% endcapture %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
|
@ -8,10 +8,10 @@ header:
|
||||||
|
|
||||||
{% include base_path %}
|
{% include base_path %}
|
||||||
|
|
||||||
<h3>Recent Posts</h3>
|
<h3 class="archive__subtitle">Recent Posts</h3>
|
||||||
|
|
||||||
{% for post in paginator.posts %}
|
{% for post in paginator.posts %}
|
||||||
{% include archive-list-single %}
|
{% include archive-list-single.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% include pagination %}
|
{% include pagination.html %}
|
Loading…
Reference in a new issue