Remove extensions from _includes to simplify naming
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user