Remove extensions from _includes to simplify naming

This commit is contained in:
Michael Rose
2016-03-07 10:27:07 -05:00
parent 0ccaef5a96
commit 3bd495f1d4
35 changed files with 148 additions and 156 deletions
+10 -10
View File
@@ -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>
+5 -5
View File
@@ -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 />